Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/Dockerfile.centos
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ RUN yum -y update
RUN yum -y install zlib-devel wget ncurses-devel ncurses-compat-libs make gcc gcc-c++

# Install GHC since stack's local install has issues
RUN wget https://downloads.haskell.org/~ghc/9.4.7/ghc-9.4.7-x86_64-centos7-linux.tar.xz
RUN tar xvf ghc-9.4.7-x86_64-centos7-linux.tar.xz
RUN cd ghc-9.4.7-x86_64-unknown-linux; ./configure; make install
RUN wget https://downloads.haskell.org/~ghc/9.6.6/ghc-9.6.6-x86_64-centos7-linux.tar.xz
RUN tar xvf ghc-9.6.6-x86_64-centos7-linux.tar.xz
RUN cd ghc-9.6.6-x86_64-unknown-linux; ./configure; make install

# install stack
RUN curl -sSL https://get.haskellstack.org/ | sh
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
tags:
- "v*"
workflow_dispatch:

jobs:
create_release:
Expand All @@ -27,7 +28,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macOS-13, macOS-14, windows-latest]
os: [ubuntu-latest, ubuntu-latest-arm, macOS-latest, windows-latest]

steps:
- name: Check out code
Expand Down Expand Up @@ -56,22 +57,14 @@ jobs:
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
newEXE="pileupCaller-$RUNNER_OS.exe"
elif [ "$RUNNER_OS" == "macOS" ]; then
newEXE="pileupCaller-$RUNNER_OS-$RUNNER_ARCH"
else
newEXE="pileupCaller-$RUNNER_OS"
newEXE="pileupCaller-$RUNNER_OS-$RUNNER_ARCH"
fi
currentEXE="${{ steps.stack.outputs.local-bin }}/pileupCaller"
mv $currentEXE $newEXE
echo "BINARY_PATH=$newEXE" >> $GITHUB_OUTPUT
shell: bash

- name: Compress binary
if: ${{ runner.os != 'macOS' }} # upx is crashing for macOS Ventura or above!
uses: svenstaro/upx-action@v2
with:
files: ${{ steps.binarypath.outputs.BINARY_PATH }}

- name: Upload Release Asset
id: upload-release-asset
uses: ncipollo/release-action@v1
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ resolver: lts-22.43
packages:
- '.'
extra-deps:
- sequence-formats-1.11.0.0
- sequence-formats-1.11.0.1
- pipes-zlib-0.4.4.2
Loading