Skip to content

Commit b2b188f

Browse files
committed
added aarch64 centos build
1 parent 2b69ea2 commit b2b188f

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM quay.io/bioconda/bioconda-utils-build-env-cos7-aarch64
2+
3+
RUN yum -y update
4+
RUN yum -y install zlib-devel wget ncurses-devel ncurses-compat-libs make gcc gcc-c++
5+
6+
# Install GHC since stack's local install has issues
7+
RUN wget https://downloads.haskell.org/~ghc/9.6.6/ghc-9.6.6-x86_64-centos7-linux.tar.xz
8+
RUN tar xvf ghc-9.6.6-x86_64-centos7-linux.tar.xz
9+
RUN cd ghc-9.6.6-x86_64-unknown-linux; ./configure; make install
10+
11+
# install stack
12+
RUN curl -sSL https://get.haskellstack.org/ | sh
13+
14+
# add source directory
15+
ADD . source
16+
WORKDIR source
17+
18+
# install
19+
# - as described in cryptonite README, cryptoniate requires disabling "use_target_attributes"
20+
# - for bitvec the "simd" flag added in v1.1.5.0 has to be deactivated - the gcc version here does not seem to support it
21+
RUN stack install --system-ghc --flag cryptonite:-use_target_attributes --flag bitvec:-simd

.github/workflows/release.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,32 @@ jobs:
108108
allowUpdates: true
109109
artifactErrorsFailBuild: true
110110
artifacts: pileupCaller-conda-linux
111+
artifactContentType: application/octet-stream
112+
113+
build_centos_artifact_aarch64:
114+
needs: [create_release]
115+
runs-on: ubuntu-latest
116+
117+
steps:
118+
- name: Checkout repo
119+
uses: actions/checkout@v4
120+
121+
- name: Build Docker image
122+
run: docker build -t linux -f .github/workflows/Dockerfile.centos_aarch64 .
123+
124+
- name: Create container
125+
run: docker create --name linuxcontainer_aarch64 linux
126+
127+
- name: Copy executable
128+
run: docker cp linuxcontainer_aarch64:/root/.local/bin/pileupCaller pileupCaller-conda-linux-aarch64
129+
130+
- name: Upload Release Asset
131+
id: upload-release-asset
132+
uses: ncipollo/release-action@v1
133+
with:
134+
name: Release ${{ github.ref_name }}
135+
draft: true
136+
allowUpdates: true
137+
artifactErrorsFailBuild: true
138+
artifacts: pileupCaller-conda-linux-aarch64
111139
artifactContentType: application/octet-stream

0 commit comments

Comments
 (0)