Skip to content

Commit

Permalink
Merge pull request #21 from FrancisCrickInstitute/feature_pr_builds
Browse files Browse the repository at this point in the history
Add build actions on PRs
  • Loading branch information
JonathanCSmith authored Sep 26, 2024
2 parents 6019cbf + df8f65a commit b77e7e6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test Build

on:
pull_request_review:
types: [submitted]

jobs:
build_release:
runs-on: ubuntu-latest
env:
IJ_DOWNLOAD_URL: https://downloads.imagej.net/fiji/latest/fiji-linux64.zip
WIKI_USER: ${{ secrets.UPDATE_USER }}
UPDATE_PASS: ${{ secrets.UPDATE_PASS }} # DO NOT WRITE your password here
UPDATE_SITE: TWOMBLI
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build with Maven
run: mvn -B package
- name: Install ImageJ/Fiji
run: |
curl --silent -O ${IJ_DOWNLOAD_URL}
unzip fiji-linux64.zip
./Fiji.app/ImageJ-linux64 --headless --update update
./Fiji.app/ImageJ-linux64 --headless --update edit-update-site ${UPDATE_SITE} https://sites.imagej.net/${UPDATE_SITE}/ "webdav:${WIKI_USER}:${UPDATE_PASS}" .
- name: Install in ImageJ/Fiji (with Maven)
run: mvn -B install -Dscijava.app.directory=./Fiji.app -Ddelete.other.versions=true -Dscijava.ignoreDependencies=true

0 comments on commit b77e7e6

Please sign in to comment.