Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Oct 27, 2024
1 parent a0d7446 commit 01d1696
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ jobs:
matrix:
include:
- os: windows-latest
build_script: win-build.sh

- os: macos-latest
build_script: mac-build.sh

- os: ubuntu-latest
build_script: linux-build.sh

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -28,27 +34,9 @@ jobs:
os: ${{ runner.os }}
gccversion: 9

- name: Calculate Version
shell: bash
- name: Build pull request version
run: |
export SVER=`cat VERSION`
export GH=`git log -1 --format=%h`
export USEVER=${SVER}.${GH}-nightly
echo ${USEVER}
echo "stochas_version=${USEVER}" >> $GITHUB_OUTPUT
- name: Build pull request version (macos)
if: runner.os == 'macOS'
run: |
STOCHAS_VERSION=${{ steps.vars.outputs.stochas_version }} ./scripts/mac-build.sh
- name: Build pull request version (linux)
if: runner.os == 'Linux'
run: |
STOCHAS_VERSION=${{ steps.vars.outputs.stochas_version }} ./scripts/linux-build.sh
- name: Build pull request version (windows)
if: runner.os == 'Windows'
run: |
STOCHAS_VERSION=${{ steps.vars.outputs.stochas_version }} ./scripts/win-build.sh
STOCHAS_VERSION="${SVER}.${GH}" ./scripts/${{ matrix.build_script }}

0 comments on commit 01d1696

Please sign in to comment.