-
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.
- Loading branch information
1 parent
8dc46b7
commit dea4b2a
Showing
1 changed file
with
51 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Pixi CI Workflow | ||
|
||
on: | ||
# on demand | ||
workflow_dispatch: | ||
inputs: | ||
delete_pixi_lock: | ||
description: 'If true, delete pixi.lock, to test against the latest version of dependencies.' | ||
required: true | ||
default: 'false' | ||
pull_request: | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
# Execute a "nightly" build twice a week 2 AM UTC | ||
- cron: '0 2 * * 2,5' | ||
|
||
jobs: | ||
build-with-pixi: | ||
name: '[pixi:${{ matrix.os }}]' | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
build_type: [Release] | ||
os: [ubuntu-22.04, macos-13, macos-14, windows-2019] | ||
# default is harmonic | ||
env: [default, ionic] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# On periodic jobs and when delete_pixi_lock option is true, delete the pixi.lock to check that the project compiles with latest version of dependencies | ||
- name: Delete pixi.lock on scheduled jobs or if delete_pixi_lock is true | ||
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.delete_pixi_lock == 'true') | ||
shell: bash | ||
run: | | ||
rm pixi.lock | ||
- name: Print used environment | ||
shell: bash | ||
run: | | ||
env | ||
- uses: prefix-dev/[email protected] | ||
|
||
- name: Build | ||
shell: bash | ||
run: | | ||
pixi run -e ${{ matrix.env }} test | ||
pixi run -e ${{ matrix.env }} install | ||