Skip to content

Commit

Permalink
ci: build python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Dec 24, 2023
1 parent 8ff505b commit 0dc63fd
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: tar czvf hipo{.tar.gz,}
- uses: actions/upload-artifact@v3
with:
name: build
name: build_deps
retention-days: 1
path: hipo.tar.gz

Expand All @@ -65,7 +65,7 @@ jobs:
run: tar czvf fmt{.tar.gz,}
- uses: actions/upload-artifact@v3
with:
name: build
name: build_deps
retention-days: 1
path: fmt.tar.gz

Expand All @@ -78,6 +78,13 @@ jobs:
- build_hipo
- build_fmt
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
binding: [ cpp, python ]
include:
- { binding: cpp, opts: '' }
- { binding: python, opts: '--python' }
steps:
- uses: actions/checkout@v4
with: # settings needed for version number detection
Expand All @@ -96,15 +103,15 @@ jobs:
done
echo "| \`fmt\` | ${{ env.fmt_version }} |" >> $GITHUB_STEP_SUMMARY
echo "| \`hipo\` | ${{ env.hipo_version }} |" >> $GITHUB_STEP_SUMMARY
- name: get build artifacts
- name: get dependency build artifacts
uses: actions/download-artifact@v3
with:
name: build
name: build_deps
- name: untar build
run: ls *.tar.gz | xargs -I{} tar xzvf {}
- run: tree
- name: configure
run: ./configure.py --hipo hipo --fmt fmt --examples --no-documentation
run: ./configure.py --hipo hipo --fmt fmt --examples --no-documentation ${{ matrix.opts }}
- name: build
run: ./install-iguana.sh
- name: dump build log
Expand All @@ -123,7 +130,7 @@ jobs:
run: tar czvf iguana{.tar.gz,}
- uses: actions/upload-artifact@v3
with:
name: build
name: build_iguana_${{ matrix.binding }}
retention-days: 1
path: iguana.tar.gz

Expand Down Expand Up @@ -154,10 +161,14 @@ jobs:
- build_iguana
runs-on: ubuntu-latest
steps:
- name: get build artifacts
- name: get dependency build artifacts
uses: actions/download-artifact@v3
with:
name: build
name: build_deps
- name: get iguana build artifacts
uses: actions/download-artifact@v3
with:
name: build_iguana_cpp
- name: get test data
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -191,10 +202,14 @@ jobs:
- uses: actions/checkout@v4
- name: setup meson
run: python -m pip install meson ninja
- name: get build artifacts
- name: get dependency build artifacts
uses: actions/download-artifact@v3
with:
name: build_deps
- name: get iguana build artifacts
uses: actions/download-artifact@v3
with:
name: build
name: build_iguana_cpp
- name: get test data
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 0dc63fd

Please sign in to comment.