-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #294 from kjsanger/fix/build-action
Fix for the Upload Action no longer working for older containers
- Loading branch information
Showing
2 changed files
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
@@ -60,7 +51,7 @@ jobs: | |
|
||
steps: | ||
- name: "Checkout code" | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
|