Skip to content

Commit

Permalink
CI: Tweak Linux-only deployment logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden committed Jul 24, 2024
1 parent 08e86be commit 055a449
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-build.sh
# NB: Only the Linux CI node should deploy build artifacts.
NO_DEPLOY=$(test "$(uname)" = Linux || echo 1) sh ci-build.sh
sh ci-build.sh
7 changes: 7 additions & 0 deletions .github/setup.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#!/bin/sh
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-setup-github-actions.sh
sh ci-setup-github-actions.sh

# Let the Linux build handle artifact deployment.
if [ "$(uname)" != Linux ]
then
echo "No deploy -- non-Linux build"
echo "NO_DEPLOY=1" >> $GITHUB_ENV
fi
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: build

on:
pull_request:
branches:
- master
push:
branches:
- master
tags:
- "*-[0-9]+.*"
pull_request:
branches:
- master

jobs:
build:
Expand All @@ -28,6 +28,7 @@ jobs:
cache: 'maven'
- name: Set up CI environment
run: .github/setup.sh
shell: bash
- name: Execute the build
run: .github/build.sh
shell: bash
Expand Down

0 comments on commit 055a449

Please sign in to comment.