@@ -22,65 +22,65 @@ jobs:
2222 name : Release ${{ github.ref_name }}
2323 draft : true
2424
25- # build_normal_artifacts:
26- # needs: [create_release]
27- # name: ${{ matrix.os }}/${{ github.ref }}
28- # runs-on: ${{ matrix.os }}
29- # strategy:
30- # matrix:
31- # os: [ubuntu-latest, ubuntu-24.04-arm, macOS-15-intel, macOS-latest, windows-latest]
32-
33- # steps:
34- # - name: Check out code
35- # uses: actions/checkout@v4
36-
37- # - name: Set tag name
38- # uses: olegtarasov/get-tag@v2.1
39- # id: tagName
40- # with:
41- # tagRegex: "v(.*)"
42- # tagRegexGroup: 1
43-
44- # - name: Install stack on macOS, where it is not present (https://github.com/freckle/stack-action/issues/80)
45- # if: ${{ runner.os == 'macOS' }}
46- # run: curl -sSL https://get.haskellstack.org/ | sh
47-
48- # - name: Build executable
49- # uses: freckle/stack-action@v5
50- # id: stack
51- # with:
52- # test: false
53- # stack-build-arguments: --copy-bins --ghc-options="-O2"
54-
55- # - name: Set binary path names
56- # id: binarypaths
57- # run: |
58- # binaries=()
59- # for TOOL in pileupCaller vcf2eigenstrat genoStats; do
60- # if [ "$RUNNER_OS" == "Windows" ]; then
61- # newEXE="$TOOL-$RUNNER_OS.exe"
62- # else
63- # newEXE="$TOOL-$RUNNER_OS-$RUNNER_ARCH"
64- # fi
65- # currentEXE="${{ steps.stack.outputs.local-bin }}/$TOOL"
66- # mv "$currentEXE" "$newEXE"
67- # binaries+=("$newEXE")
68- # done
69- # # join with commas for release-action
70- # binary_paths=$(printf "%s," "${binaries[@]}")
71- # binary_paths=${binary_paths%,}
72- # echo "BINARY_PATHS=$binary_paths" >> "$GITHUB_OUTPUT"
73- # shell: bash
74-
75- # - name: Upload Release Assets
76- # uses: ncipollo/release-action@v1
77- # with:
78- # name: Release ${{ github.ref_name }}
79- # draft: true
80- # allowUpdates: true
81- # artifactErrorsFailBuild: true
82- # artifacts: ${{ steps.binarypaths.outputs.BINARY_PATHS }}
83- # artifactContentType: application/octet-stream
25+ build_normal_artifacts :
26+ needs : [create_release]
27+ name : ${{ matrix.os }}/${{ github.ref }}
28+ runs-on : ${{ matrix.os }}
29+ strategy :
30+ matrix :
31+ os : [ubuntu-latest, ubuntu-24.04-arm, macOS-15-intel, macOS-latest, windows-latest]
32+
33+ steps :
34+ - name : Check out code
35+ uses : actions/checkout@v4
36+
37+ - name : Set tag name
38+ uses : olegtarasov/get-tag@v2.1
39+ id : tagName
40+ with :
41+ tagRegex : " v(.*)"
42+ tagRegexGroup : 1
43+
44+ - name : Install stack on macOS, where it is not present (https://github.com/freckle/stack-action/issues/80)
45+ if : ${{ runner.os == 'macOS' }}
46+ run : curl -sSL https://get.haskellstack.org/ | sh
47+
48+ - name : Build executable
49+ uses : freckle/stack-action@v5
50+ id : stack
51+ with :
52+ test : false
53+ stack-build-arguments : --copy-bins --ghc-options="-O2"
54+
55+ - name : Set binary path names
56+ id : binarypaths
57+ run : |
58+ binaries=()
59+ for TOOL in pileupCaller vcf2eigenstrat genoStats; do
60+ if [ "$RUNNER_OS" == "Windows" ]; then
61+ newEXE="$TOOL-$RUNNER_OS.exe"
62+ else
63+ newEXE="$TOOL-$RUNNER_OS-$RUNNER_ARCH"
64+ fi
65+ currentEXE="${{ steps.stack.outputs.local-bin }}/$TOOL"
66+ mv "$currentEXE" "$newEXE"
67+ binaries+=("$newEXE")
68+ done
69+ # join with commas for release-action
70+ binary_paths=$(printf "%s," "${binaries[@]}")
71+ binary_paths=${binary_paths%,}
72+ echo "BINARY_PATHS=$binary_paths" >> "$GITHUB_OUTPUT"
73+ shell : bash
74+
75+ - name : Upload Release Assets
76+ uses : ncipollo/release-action@v1
77+ with :
78+ name : Release ${{ github.ref_name }}
79+ draft : true
80+ allowUpdates : true
81+ artifactErrorsFailBuild : true
82+ artifacts : ${{ steps.binarypaths.outputs.BINARY_PATHS }}
83+ artifactContentType : application/octet-stream
8484
8585 build_centos_artifact :
8686 needs : [create_release]
0 commit comments