From 3dff413aa376815c9c981613ea1c5904ec582076 Mon Sep 17 00:00:00 2001 From: Sajid Ali Date: Mon, 10 Jun 2024 15:13:11 -0400 Subject: [PATCH] Add pixi-conda CI --- .github/workflows/macos-pixi-conda.yml | 49 ++++++++++++++++++++----- .github/workflows/ubuntu-pixi-conda.yml | 49 ++++++++++++++++++++----- 2 files changed, 78 insertions(+), 20 deletions(-) diff --git a/.github/workflows/macos-pixi-conda.yml b/.github/workflows/macos-pixi-conda.yml index 47b7598cc..4752d7785 100644 --- a/.github/workflows/macos-pixi-conda.yml +++ b/.github/workflows/macos-pixi-conda.yml @@ -1,10 +1,39 @@ -- uses: prefix-dev/setup-pixi@v0.8.1 - with: - pixi-version: v0.23.0 - cache: true - auth-host: prefix.dev - auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} - -- cmake: pixi run cmake -- build: pixi run build -- test: pixi run test + +name: CI:ubuntu-pixi-conda + +on: + push: + branches: [ devel3 ] + paths-ignore: + - 'wiki/**' + pull_request: + branches: [ devel3 ] + paths-ignore: + - 'wiki/**' + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Cancel Previous runs + uses: styfle/cancel-workflow-action@0.12.1 + with: + access_token: ${{ github.token }} + + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: 'true' + + - name: build_and_test + uses: prefix-dev/setup-pixi@v0.8.1 + with: + pixi-version: v0.23.0 + cache: true + auth-host: prefix.dev + auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} + run: | + pixi run cmake + pixi run build + pixi run test diff --git a/.github/workflows/ubuntu-pixi-conda.yml b/.github/workflows/ubuntu-pixi-conda.yml index 47b7598cc..4752d7785 100644 --- a/.github/workflows/ubuntu-pixi-conda.yml +++ b/.github/workflows/ubuntu-pixi-conda.yml @@ -1,10 +1,39 @@ -- uses: prefix-dev/setup-pixi@v0.8.1 - with: - pixi-version: v0.23.0 - cache: true - auth-host: prefix.dev - auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} - -- cmake: pixi run cmake -- build: pixi run build -- test: pixi run test + +name: CI:ubuntu-pixi-conda + +on: + push: + branches: [ devel3 ] + paths-ignore: + - 'wiki/**' + pull_request: + branches: [ devel3 ] + paths-ignore: + - 'wiki/**' + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Cancel Previous runs + uses: styfle/cancel-workflow-action@0.12.1 + with: + access_token: ${{ github.token }} + + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: 'true' + + - name: build_and_test + uses: prefix-dev/setup-pixi@v0.8.1 + with: + pixi-version: v0.23.0 + cache: true + auth-host: prefix.dev + auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} + run: | + pixi run cmake + pixi run build + pixi run test