Skip to content

Commit

Permalink
Merge pull request InsightSoftwareConsortium#4902 from thewtex/gh-act…
Browse files Browse the repository at this point in the history
…ions-pixi-linux-for-release

ENH: Add Pixi GitHub Actions Configuration
  • Loading branch information
thewtex authored Oct 31, 2024
2 parents ca8b823 + bb705e5 commit 62b5247
Show file tree
Hide file tree
Showing 3 changed files with 2,347 additions and 47 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/pixi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: ITK.Pixi

on:
push:
branches:
- master
- 'release*'
paths-ignore:
- '*.md'
- LICENSE
- NOTICE
- 'Documentation/**'
- 'Utilities/Debugger/**'
- 'Utilities/ITKv5Preparation/**'
- 'Utilities/Maintenance/**'
pull_request:
paths-ignore:
- '*.md'
- LICENSE
- NOTICE
- 'Documentation/**'
- 'Utilities/Debugger/**'
- 'Utilities/ITKv5Preparation/**'
- 'Utilities/Maintenance/**'

env:
ExternalDataVersion: 5.3.0

jobs:
Pixi-Cxx:
runs-on: ${{ matrix.os }}
timeout-minutes: 0
strategy:
matrix:
os: [ubuntu-22.04, windows-2022]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 5
clean: true

- name: Free Disk Space (Ubuntu)
if: matrix.os == 'ubuntu-22.04'
uses: jlumbroso/free-disk-space@main

- name: Download testing data
run: |
curl -L https://github.com/InsightSoftwareConsortium/ITK/releases/download/v${{ env.ExternalDataVersion }}/InsightData-${{ env.ExternalDataVersion }}.tar.gz -O
cmake -E tar xfz InsightData-${{ env.ExternalDataVersion }}.tar.gz
cmake -E rename InsightToolkit-${{ env.ExternalDataVersion }}/.ExternalData/MD5 ${{ github.workspace }}/.ExternalData/MD5
- name: Set up Pixi
uses: prefix-dev/[email protected]

- name: Configure
run: pixi run configure

- name: Build
run: pixi run build

- name: Test
run: pixi run test
Loading

0 comments on commit 62b5247

Please sign in to comment.