Skip to content

Commit

Permalink
Try building all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
imagejan committed May 22, 2024
1 parent f03f771 commit 59d1a9b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target-platform: linux-64
- os: windows-latest
target-platform: win-64
- os: macos-latest
target-platform: osx-64
steps:
- uses: actions/checkout@v4
- name: Build conda package
Expand Down
1 change: 1 addition & 0 deletions conda.recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cp -r elastix/* $PREFIX
42 changes: 34 additions & 8 deletions conda.recipe/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# can later be used in Jinja expressions
context:
version: 0.0.1
name: rattler-elastix
name: elastix

# top level package information (name and version)
package:
Expand All @@ -11,9 +11,21 @@ package:

# location to get the source from
source:
- url: https://github.com/SuperElastix/elastix/releases/download/5.1.0/elastix-5.1.0-win64.zip
sha256: 644A230CA99535DE44604E57E3D895AF8A1FDE380909F6F143BFE8DFD6F688E1
target_directory: elastix
- if: win
then:
- url: https://github.com/SuperElastix/elastix/releases/download/5.1.0/elastix-5.1.0-win64.zip
sha256: 644A230CA99535DE44604E57E3D895AF8A1FDE380909F6F143BFE8DFD6F688E1
target_directory: elastix
- if: linux
then:
- url: https://github.com/SuperElastix/elastix/releases/download/5.1.0/elastix-5.1.0-linux.zip
sha256: B333F2A911C23BA978C4A249722C8DFB29F81D190AB69553CE1622FAE39C3CF9
target_directory: elastix
- if: osx
then:
- url: https://github.com/SuperElastix/elastix/releases/download/5.1.0/elastix-5.1.0-mac.zip
sha256: 2B9C31BFCC1E7A5628616E3FCA6C18ABE994F80A53D72F5BECCF10E42C760696
target_directory: elastix


# build number (should be incremented if a new build is made, but version is not incrementing)
Expand All @@ -28,10 +40,24 @@ requirements:

# tests to validate that the package works as expected
tests:
- package_contents:
files:
- elastix.exe
- transformix.exe
- if: win
then:
- package_contents:
files:
- elastix.exe
- transformix.exe
- if: linux
then:
- package_contents:
files:
- bin/elastix
- bin/transformix
- if: osx
then:
- package_contents:
files:
- bin/elastix
- bin/transformix


# information about the package
Expand Down

0 comments on commit 59d1a9b

Please sign in to comment.