From 59d1a9b7f884975d6323f4bbafb9c43766b7780f Mon Sep 17 00:00:00 2001 From: Jan Eglinger Date: Wed, 22 May 2024 14:25:26 +0200 Subject: [PATCH] Try building all platforms --- .github/workflows/package.yaml | 4 ++++ conda.recipe/build.sh | 1 + conda.recipe/recipe.yaml | 42 +++++++++++++++++++++++++++------- 3 files changed, 39 insertions(+), 8 deletions(-) create mode 100644 conda.recipe/build.sh diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml index c349669..bee03f1 100644 --- a/.github/workflows/package.yaml +++ b/.github/workflows/package.yaml @@ -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 diff --git a/conda.recipe/build.sh b/conda.recipe/build.sh new file mode 100644 index 0000000..506dc62 --- /dev/null +++ b/conda.recipe/build.sh @@ -0,0 +1 @@ +cp -r elastix/* $PREFIX diff --git a/conda.recipe/recipe.yaml b/conda.recipe/recipe.yaml index a2f04d6..2d0f929 100644 --- a/conda.recipe/recipe.yaml +++ b/conda.recipe/recipe.yaml @@ -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: @@ -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) @@ -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