Bump quote from 1.0.28 to 1.0.32 #468
Workflow file for this run
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
--- | |
name: Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: ${{ matrix.repo.slug }} (ruby=${{ matrix.ruby }}, os=${{ matrix.os }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
repo: | |
- name: "oxidize-rb/oxi-test" | |
slug: oxi-test | |
ref: main | |
run: rake | |
- name: "matsadler/magnus" | |
slug: magnus-0.5 | |
ref: "0.5.4" | |
run: cargo test | |
- name: "matsadler/magnus" | |
slug: magnus-head | |
ref: "05359fcd2369f014570f1e417c7c2d462625af5e" | |
run: cargo test | |
os: ["ubuntu-latest", "windows-latest", "macos-latest"] | |
rust: ["stable"] | |
ruby: ["2.7", "3.2", "ruby-head"] | |
# Should re-include these after unstable-api is enabled | |
exclude: | |
- os: windows-latest | |
ruby: ruby-head | |
repo: | |
name: "matsadler/magnus" | |
slug: magnus-head | |
ref: "05359fcd2369f014570f1e417c7c2d462625af5e" | |
run: cargo test | |
- os: windows-latest | |
ruby: ruby-head | |
repo: | |
name: "matsadler/magnus" | |
slug: magnus-0.5 | |
ref: "0.5.4" | |
run: cargo test | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Log matrix | |
shell: bash | |
env: | |
INPUTS: ${{ toJSON(matrix) }} | |
run: | | |
echo "$INPUTS" | jq | |
- uses: actions/checkout@v3 | |
with: | |
repository: ${{ matrix.repo.name }} | |
ref: ${{ matrix.repo.ref }} | |
path: repo | |
- uses: actions/checkout@v3 | |
with: | |
path: rb-sys | |
- uses: oxidize-rb/actions/setup-ruby-and-rust@v1 | |
id: setup | |
with: | |
cache-version: v2 | |
ruby-version: ${{ matrix.ruby }} | |
rustup-toolchain: ${{ matrix.rust }} | |
- name: ✏️ Replace rb-sys | |
shell: bash | |
run: | | |
cd ./repo | |
mkdir -p .cargo | |
echo >> .cargo/config.toml | |
echo "[patch.crates-io]" >> .cargo/config.toml | |
echo "rb-sys = { path = \"../rb-sys/crates/rb-sys\" }" >> .cargo/config.toml | |
cargo update -p rb-sys | |
echo "RUBYOPT=-I${{ github.workspace }}/rb-sys/gem/lib" >> $GITHUB_ENV | |
ruby -e "File.write('Gemfile', File.read('Gemfile').gsub(/gem .rb_sys.*$/, 'gem \"rb_sys\", path: \"../rb-sys/gem\"'))" || true | |
bundle install -j3 --retry 3 || true | |
- name: 🧪 Run tests for ${{ matrix.repo.slug }} | |
shell: bash | |
run: | | |
cd ./repo | |
${{ matrix.repo.run }} |