Skip to content

Commit

Permalink
Simplify and improve the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 committed Apr 18, 2024
1 parent e7c70c9 commit a8906d6
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
build: [stable, beta, nightly, linux32, macos, aarch64-ios, win64, windows-latest]
build: [stable, beta, nightly, anaconda linux, macos, anaconda macos, win64]
include:
- build: stable
os: ubuntu-latest
Expand All @@ -22,14 +22,10 @@ jobs:
os: ubuntu-latest
rust: nightly
target: x86_64-unknown-linux-gnu
- build: linux32
os: ubuntu-latest
rust: stable
target: i686-unknown-linux-gnu
- build: anaconda linux
os: ubuntu-latest
rust: stable
target: i686-unknown-linux-gnu
target: x86_64-unknown-linux-gnu
- build: macos
os: macos-latest
rust: stable
Expand All @@ -38,22 +34,10 @@ jobs:
os: macos-latest
rust: stable
target: x86_64-apple-darwin
- build: aarch64-ios
os: macos-latest
rust: stable
target: aarch64-apple-ios
- build: windows-aarch64
os: windows-latest
rust: stable
target: aarch64-pc-windows-msvc
- build: win64
os: windows-latest
rust: stable
target: x86_64-pc-windows-msvc
- build: windows-latest
os: windows-latest
rust: stable-x86_64
target: x86_64-pc-windows-msvc
steps:
- uses: actions/checkout@master
- run: git submodule init
Expand All @@ -69,9 +53,9 @@ jobs:
if: startsWith(matrix.build, 'anaconda')
run: $CONDA/bin/conda install conda-forge::matplotlib
- name: Install Rust (rustup)
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
shell: bash
- run: rustup target add ${{ matrix.target }}
run: |
rustup update --no-self-update
rustup default ${{ matrix.rust }}-${{ matrix.target }}
- run: cargo build -vv
- run: cargo test
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
Expand All @@ -88,4 +72,6 @@ jobs:
run: |
source $($CONDA/bin/conda info --base)/bin/activate
export DYLD_LIBRARY_PATH=$CONDA_PREFIX/lib
cargo run --example a_simple_example
ls -l $DYLD_LIBRARY_PATH
cargo build --example a_simple_example
target/debug/examples/a_simple_example

0 comments on commit a8906d6

Please sign in to comment.