-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update to pixi * Update * Fix build and docker * Fix docker * Dumb fix * Docs fix * Fix docs packages * Fix docs packages * Quarto fix * Fix shell hook * Update publish workflow * Add pixi command
- Loading branch information
Showing
15 changed files
with
680 additions
and
1,312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,48 +27,29 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
python-version: ["3.12"] | ||
include: | ||
- os: ubuntu-latest | ||
label: linux-64 | ||
prefix: /home/runner/miniconda3/envs/fiat_test | ||
|
||
name: ${{ matrix.os }} - py${{ matrix.python-version }} | ||
name: ${{ matrix.os }} - build | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Generate env yaml | ||
run: | | ||
pip install tomli | ||
python make_env.py build | ||
- name: Load cache | ||
id: cache | ||
uses: actions/cache/restore@v4 | ||
- name: Setup pixi env | ||
uses: prefix-dev/[email protected] | ||
with: | ||
path: | | ||
/home/runner/miniconda3 | ||
~/pycache | ||
# the below two settings mean we'll alway srestore the cache | ||
# but the cache hit output can tell us if we have to update afterwards | ||
key: build-${{ hashFiles('environment.yml') }} | ||
restore-keys: | | ||
build | ||
- name: Cache failed | ||
if: steps.cache.outputs.cache-matched-key == '' | ||
run: | | ||
echo "Failed to restore any cache. exiting..." | ||
exit 1 | ||
pixi-version: "v0.40.3" | ||
environments: build-linux | ||
locked: false | ||
cache: true | ||
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }} | ||
|
||
- name: Update environment | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
- name: Install fiat | ||
run: | | ||
export PATH=/home/runner/miniconda3/bin:$PATH | ||
mamba env update -n fiat_build -f environment.yml | ||
pixi run -e build-linux install-fiat | ||
- name: Build FIAT | ||
run: | | ||
|
@@ -77,12 +58,7 @@ jobs: | |
- name: Create Testdata | ||
run: | | ||
export PATH=/home/runner/miniconda3/bin:$PATH | ||
source /home/runner/miniconda3/etc/profile.d/conda.sh | ||
conda activate fiat_build | ||
pip install tomli-w | ||
python .testdata/create_test_data.py | ||
conda deactivate | ||
pixi run -e build-linux generate-data | ||
- name: Test Binary | ||
run: ./bin/Release/fiat run .testdata/geom_event.toml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.