working on github dist

This commit is contained in:
Charlton, Scott R 2021-09-14 22:12:33 -06:00
parent fe63ae8cb8
commit f51b62707c

View File

@ -22,14 +22,38 @@ jobs:
- name: Setup vars
id: vars
run: |
which curl
curl --version
VER=$(curl https://raw.githubusercontent.com/usgs-coupled/phreeqc-version/main/phreeqc-version.txt)
echo VER=${VER}
echo ::set-output name=VER::${VER}
exit 1
ver_major=$(echo "$VER" | awk -F. '{print $1}')
ver_minor=$(echo "$VER" | awk -F. '{print $2}')
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:
needs: [init]
# 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
# cross-platform coverage.