Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.71.1"
toolchain: stable
- name: Install doxygen and dependencies
run: |
sudo apt-get update
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/rust-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,21 @@ jobs:
name: cargo:test
strategy:
fail-fast: false
runs-on: ubuntu-latest
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: head
ruby-version: 3.4
bundler-cache: true
- name: Set up Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.71.1"
targets: wasm32-wasi
toolchain: stable
targets: wasm32-wasip1
- uses: actions/cache@v4
with:
path: |
Expand All @@ -45,7 +47,9 @@ jobs:
${{ runner.os }}-cargo
- name: Run tests
run: bundle exec rake cargo:test

- name: Run examples
if: ${{ matrix.os != 'windows-latest' }}
run: bundle exec rake cargo:examples

lint:
Expand All @@ -58,12 +62,12 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: head
ruby-version: 3.4
bundler-cache: true
- name: Set up Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.71.1"
toolchain: stable
components: clippy, rustfmt
- uses: actions/cache@v4
with:
Expand Down Expand Up @@ -92,13 +96,13 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: head
ruby-version: 3.4
bundler-cache: true
- name: rake cargo:build
run: bundle exec rake cargo:build
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2023-10-24
toolchain: nightly
target: "x86_64-unknown-linux-gnu"
components: "rust-src"
- name: Test with sanitizer
Expand All @@ -124,7 +128,7 @@ jobs:
# uses: dtolnay/rust-toolchain@master
# with:
# toolchain: "1.71.1"
# targets: wasm32-wasi
# targets: wasm32-wasip1
# - uses: actions/cache@v4
# with:
# path: |
Expand Down
2 changes: 1 addition & 1 deletion rakelib/cargo.rake
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ namespace :cargo do

CRATES.each do |crate|
Dir.chdir("rust/#{crate}") do
sh("cargo +nightly-2023-10-24 test -Zbuild-std --target=#{current_target} -- --nocapture")
sh("cargo +nightly test -Zbuild-std --target=#{current_target} -- --nocapture")
end
end
ensure
Expand Down
Loading