Skip to content

Commit ca3047f

Browse files
committed
reactivated docker build for testing
1 parent ddce972 commit ca3047f

File tree

2 files changed

+74
-93
lines changed

2 files changed

+74
-93
lines changed

.github/workflows/release.yaml

Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -22,90 +22,90 @@ 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
84-
85-
# build_centos_artifact:
25+
# build_normal_artifacts:
8626
# needs: [create_release]
87-
# runs-on: ubuntu-latest
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]
8832

8933
# steps:
90-
# - name: Checkout repo
34+
# - name: Check out code
9135
# uses: actions/checkout@v4
9236

93-
# - name: Build Docker image
94-
# run: docker build -t linux -f .github/workflows/Dockerfile.centos .
95-
96-
# - name: Create container
97-
# run: docker create --name linuxcontainer linux
37+
# - name: Set tag name
38+
# uses: olegtarasov/get-tag@v2.1
39+
# id: tagName
40+
# with:
41+
# tagRegex: "v(.*)"
42+
# tagRegexGroup: 1
9843

99-
# - name: Copy executable
100-
# run: docker cp linuxcontainer:/root/.local/bin/pileupCaller pileupCaller-conda-linux
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
10147

102-
# - name: Upload Release Asset
103-
# id: upload-release-asset
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
10476
# uses: ncipollo/release-action@v1
10577
# with:
10678
# name: Release ${{ github.ref_name }}
10779
# draft: true
10880
# allowUpdates: true
10981
# artifactErrorsFailBuild: true
110-
# artifacts: pileupCaller-conda-linux
111-
# artifactContentType: application/octet-stream
82+
# artifacts: ${{ steps.binarypaths.outputs.BINARY_PATHS }}
83+
# artifactContentType: application/octet-stream
84+
85+
build_centos_artifact:
86+
needs: [create_release]
87+
runs-on: ubuntu-latest
88+
89+
steps:
90+
- name: Checkout repo
91+
uses: actions/checkout@v4
92+
93+
- name: Build Docker image
94+
run: docker build -t linux -f .github/workflows/Dockerfile.centos .
95+
96+
- name: Create container
97+
run: docker create --name linuxcontainer linux
98+
99+
- name: Copy executable
100+
run: docker cp linuxcontainer:/root/.local/bin/pileupCaller pileupCaller-conda-linux
101+
102+
- name: Upload Release Asset
103+
id: upload-release-asset
104+
uses: ncipollo/release-action@v1
105+
with:
106+
name: Release ${{ github.ref_name }}
107+
draft: true
108+
allowUpdates: true
109+
artifactErrorsFailBuild: true
110+
artifacts: pileupCaller-conda-linux
111+
artifactContentType: application/octet-stream

Dockerfile.linux

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)