Skip to content

Commit

Permalink
Merge pull request #294 from kjsanger/fix/build-action
Browse files Browse the repository at this point in the history
Fix for the Upload Action no longer working for older containers
  • Loading branch information
mksanger authored Jun 25, 2024
2 parents cf35246 + 17b2967 commit 8b3c4a1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set -ex

git config --global --add safe.directory "$PWD"

autoreconf -fi
./configure
make dist

dist_file=$(find . -name baton-\*.tar.gz -print0)
sha256sum "$dist_file" > "$dist_file".sha256

ls -l
21 changes: 6 additions & 15 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ jobs:
run:
shell: bash -l -e -o pipefail {0}

container:
image: "ghcr.io/wtsi-npg/ub-18.04-irods-clients-dev-4.2.11:latest"

steps:
- name: "Checkout code"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -32,16 +29,10 @@ jobs:
git fetch --tags --force
- name: "Build Package"
run: |
# Avoid git exiting when Actions runs
git config --global --add safe.directory "$PWD"
autoreconf -fi
./configure
make dist
dist_file=$(ls baton-*.tar.gz)
sha256sum "$dist_file" > "$dist_file".sha256
uses: wtsi-npg/[email protected]
with:
build-script:
./.github/workflows/build.sh

- name: "Upload artifacts"
uses: actions/upload-artifact@v4
Expand All @@ -60,7 +51,7 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down

0 comments on commit 8b3c4a1

Please sign in to comment.