Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
shell: bash -el {0}

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
Expand All @@ -29,10 +29,10 @@ jobs:

- name: Get Date
id: get-date
run: echo "::set-output name=today::$(/bin/date -u '+%Y%m%d')"
run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT

- name: Cache Conda env
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.CONDA }}/envs
key: conda-${{ runner.os }}--${{ runner.arch }}--${{ steps.get-date.outputs.today }}-${{ hashFiles('environment_doc.yml') }}-${{ env.CACHE_NUMBER }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
name: ${{ matrix.os }}

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Install system dependencies
if: matrix.sys-package-install-command != ''
Expand All @@ -43,7 +43,7 @@ jobs:
run: ${{ matrix.setup-env-command }}

- name: Setup uv
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7

- name: Editable install
run: |
Expand Down
100 changes: 29 additions & 71 deletions .github/workflows/carma-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,79 +4,37 @@ on:
workflow_dispatch:

jobs:
Linux:
name: Linux
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
activate-environment: packaging
- name: Conda build for Linux
shell: bash -l {0}
run: |
conda update --all
conda install python=3.11 conda-build anaconda-client conda-verify
conda-build carma.recipe -c conda-forge -c set3mah --output-folder .
anaconda login --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
anaconda upload linux-64/*.conda --force
anaconda logout

macos:
name: MacOS
runs-on: "macos-14"
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
activate-environment: packaging
- name: Conda build for MacOS
shell: bash -l {0}
run: |
conda update --all
conda install python=3.11 conda-build anaconda-client conda-verify
conda-build carma.recipe -c conda-forge -c set3mah --output-folder .
anaconda login --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
anaconda upload osx-64/*.conda --force
anaconda logout

macos-arm64:
name: MacOS-arm64
runs-on: "macos-14-arm64"
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
activate-environment: packaging
- name: Conda build for MacOS - arm64
shell: bash -l {0}
run: |
conda update --all
conda install python=3.11 conda-build anaconda-client conda-verify
conda-build carma.recipe -c conda-forge -c set3mah --output-folder .
anaconda login --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
anaconda upload osx-arm64/*.conda --force
anaconda logout
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- os: Linux
runner: ubuntu-latest
target-platform: linux-64
- os: MacOS
runner: macos-latest
target-platform: osx-arm64
- os: Windows
runner: windows-latest
target-platform: win-64


windows:
name: Windows
runs-on: "windows-latest"
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
- uses: actions/checkout@v6

- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
miniconda-version: latest
activate-environment: packaging
- name: Conda build for Windows
shell: pwsh

- name: Conda build and upload
shell: bash -l {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: |
conda update --all
conda install python=3.11 conda-build anaconda-client conda-verify
conda-build carma.recipe -c conda-forge -c set3mah --output-folder .
anaconda login --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
anaconda upload win-64/*.conda --force
anaconda logout
conda update --all -y
conda install -y python=3.11 conda-build anaconda-client conda-verify
conda-build carma.recipe -c conda-forge -c set3mah --output-folder .
anaconda upload ${{ matrix.target-platform }}/*.conda --force
120 changes: 44 additions & 76 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Build & Test
#build and test on the three OS

on:
workflow_dispatch:
Expand All @@ -13,111 +12,80 @@ permissions:
actions: read

jobs:
Linux:
name: Linux
runs-on: "ubuntu-latest"
build-and-test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- os: Linux
runner: ubuntu-latest
environment-file: environment.yml
shell: bash -l {0}
- os: MacOS
runner: macos-latest
environment-file: environment_arm64.yml
shell: bash -l {0}
- os: Windows
runner: windows-latest
environment-file: environment_win.yml
shell: pwsh

defaults:
run:
shell: ${{ matrix.shell }}

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
activate-environment: foo
python-version: "3.12"
environment-file: environment.yml
python-version: "3.14"
environment-file: ${{ matrix.environment-file }}
channels: conda-forge,set3mah

- name: Prepare conda environment
shell: bash -l {0}
- name: Prepare conda environment (Unix)
if: runner.os != 'Windows'
run: |
conda config --env --add channels conda-forge
conda config --env --add channels set3mah
conda config --env --set channel_priority strict

- name: Build for Linux
shell: bash -l {0}
- name: Build (Unix)
if: runner.os != 'Windows'
run: |
cmake -S . -B ${{github.workspace}}/build -G Ninja \
cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INCLUDE_PATH=$CONDA_PREFIX/include \
-DCMAKE_LIBRARY_PATH=$CONDA_PREFIX/lib \
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
-Wno-dev
cmake --build ${{github.workspace}}/build

- name: Tests
shell: bash -l {0}
run: ctest --test-dir ${{github.workspace}}/build --output-on-failure

- name: Upload test logs as artifact
if: always() # Ensure this step runs even if the tests fail
uses: actions/upload-artifact@v4
with:
name: test-logs-Linux
path: build/Testing/Temporary/LastTest.log
retention-days: 7
cmake --build build

MacOS:
name: MacOS
runs-on: "macos-latest"
steps:
- uses: actions/checkout@v5
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
activate-environment: foo
environment-file: environment_arm64.yml

- name: Build for MacOS
shell: bash -l {0}
run: |
cmake -S . -B ${{github.workspace}}/build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INCLUDE_PATH=$CONDA_PREFIX/include \
-DCMAKE_LIBRARY_PATH=$CONDA_PREFIX/lib \
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
-Wno-dev
cmake --build ${{github.workspace}}/build

- name: Tests
shell: bash -l {0}
run: ctest --test-dir ${{github.workspace}}/build --output-on-failure

- name: Upload test logs as artifact
if: always() # Ensure this step runs even if the tests fail
uses: actions/upload-artifact@v4
with:
name: test-logs-OSX
path: build/Testing/Temporary/LastTest.log
retention-days: 7

Windows:
name: Windows
runs-on: "windows-latest"
steps:
- uses: actions/checkout@v5
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
activate-environment: foo
environment-file: environment_win.yml

- name: Build for Windows
shell: pwsh
- name: Build (Windows)
if: runner.os == 'Windows'
run: |
cmake -S . -B build `
-DCMAKE_BUILD_TYPE=Release `
-DCMAKE_INSTALL_PREFIX="$env:CONDA_PREFIX/Library" `
-Wno-dev
cmake --build build --config Release

- name: Tests
shell: pwsh
- name: Tests (Unix)
if: runner.os != 'Windows'
run: ctest --test-dir build --output-on-failure

- name: Tests (Windows)
if: runner.os == 'Windows'
run: ctest --test-dir build -C Release --output-on-failure -VV

- name: Upload test logs as artifact
if: always() # Ensure this step runs even if the tests fail
if: always()
uses: actions/upload-artifact@v4
with:
name: test-logs-Win
name: test-logs-${{ matrix.os }}
path: build/Testing/Temporary/LastTest.log
retention-days: 7
37 changes: 0 additions & 37 deletions .github/workflows/conda-packaging-linux.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/conda-packaging-osx-64.yml

This file was deleted.

Loading
Loading