Skip to content

Commit

Permalink
simple os-matrix for build
Browse files Browse the repository at this point in the history
  • Loading branch information
stschiff committed Mar 6, 2024
1 parent 2213f83 commit e140ecf
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,14 @@ jobs:
# bash .github/workflows/upload-github-release-asset.sh github_api_token=${{ secrets.GITHUB_TOKEN }} owner=stschiff repo=sequenceTools tag=$(basename $GITHUB_REF) filename=$TOOL-linux
# done

build-on-mac:
runs-on: macos-latest
build:
needs: [create_release]
name: ${{ matrix.os }}/GHC ${{ matrix.ghc }}/${{ github.ref_name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest,windows-latest,ubuntu-latest]
ghc: ["9.4.7"]
steps:

- name: Checkout repo
Expand All @@ -61,7 +67,7 @@ jobs:

- name: Rename binaries
run: |
for TOOL in genoStats pileupCaller vcf2eigenstrat; do cp ~/.local/bin/$TOOL $TOOL-macOS; done
for TOOL in genoStats pileupCaller vcf2eigenstrat; do cp ~/.local/bin/$TOOL $TOOL-$RUNNER_OS; done
- name: Upload Release Asset
id: upload-release-asset
Expand All @@ -71,6 +77,6 @@ jobs:
draft: true
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: "genoStats-macOS,pileupCaller-macOS,vcf2eigenstrat-macOS"
artifacts: "genoStats-$RUNNER_OS,pileupCaller-$RUNNER_OS,vcf2eigenstrat-$RUNNER_OS"
artifactContentType: application/octet-stream

0 comments on commit e140ecf

Please sign in to comment.