mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 08:38:23 +01:00
working on github dist
This commit is contained in:
parent
fe63ae8cb8
commit
f51b62707c
34
.github/workflows/cmake.yml
vendored
34
.github/workflows/cmake.yml
vendored
@ -22,14 +22,38 @@ jobs:
|
|||||||
- name: Setup vars
|
- name: Setup vars
|
||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
which curl
|
|
||||||
curl --version
|
|
||||||
VER=$(curl https://raw.githubusercontent.com/usgs-coupled/phreeqc-version/main/phreeqc-version.txt)
|
VER=$(curl https://raw.githubusercontent.com/usgs-coupled/phreeqc-version/main/phreeqc-version.txt)
|
||||||
echo VER=${VER}
|
ver_major=$(echo "$VER" | awk -F. '{print $1}')
|
||||||
echo ::set-output name=VER::${VER}
|
ver_minor=$(echo "$VER" | awk -F. '{print $2}')
|
||||||
exit 1
|
if [ -z "$ver_minor" ]; then
|
||||||
|
ver_minor=0
|
||||||
|
ver_patch=0
|
||||||
|
else
|
||||||
|
ver_patch=$(echo "$VER" | awk -F. '{print $3}')
|
||||||
|
if [ -z "$ver_patch" ]; then
|
||||||
|
ver_patch=0
|
||||||
|
else
|
||||||
|
ver_patch=$((ver_patch+1))
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
curl -L -O https://raw.githubusercontent.com/usgs-coupled/phreeqc-version/main/ver.py
|
||||||
|
echo ::set-output name=VER::${ver_major}.${ver_minor}.${ver_patch}
|
||||||
|
echo ::set-output name=REL::$(python ver.py)
|
||||||
|
echo ::set-output name=DATE::$(date "+%x")
|
||||||
|
|
||||||
|
check:
|
||||||
|
needs: [init]
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- name: Display vars
|
||||||
|
run: |
|
||||||
|
echo VER=${{ needs.init.outputs.VER }}
|
||||||
|
echo REL=${{ needs.init.outputs.REL }}
|
||||||
|
echo DATE=${{ needs.init.outputs.DATE }}
|
||||||
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
needs: [init]
|
||||||
# The CMake configure and build commands are platform agnostic and should work equally
|
# The CMake configure and build commands are platform agnostic and should work equally
|
||||||
# well on Windows or Mac. You can convert this to a matrix build if you need
|
# well on Windows or Mac. You can convert this to a matrix build if you need
|
||||||
# cross-platform coverage.
|
# cross-platform coverage.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user