Compare commits
No commits in common. "d0936c55492075c892fdfb66b2b46461bd66ed9a" and "81fed90c5ccfa3da1c2d9b7aebc63120a80640fd" have entirely different histories.
d0936c5549
...
81fed90c5c
1 changed files with 12 additions and 22 deletions
34
.github/workflows/rust.yml
vendored
34
.github/workflows/rust.yml
vendored
|
|
@ -2,9 +2,9 @@ name: Rust
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
branches: [ "main" ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
|
@ -15,23 +15,13 @@ jobs:
|
|||
env:
|
||||
RUSTFLAGS: -D warnings
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Ruby
|
||||
env:
|
||||
CC: clang
|
||||
run: |
|
||||
url="https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.4.tar.gz"
|
||||
mkdir ruby_src
|
||||
curl -sSL $url | tar -xz --directory=./ruby_src
|
||||
cd ruby_src
|
||||
mkdir build && cd build
|
||||
mkdir rubies
|
||||
../configure --without-shared --prefix="${pwd}/rubies/ruby-3.4"
|
||||
make install
|
||||
echo `pwd`/rubies/ruby-3.4/ruby/bin >> $GITHUB_PATH
|
||||
- name: Clippy
|
||||
run: cargo clippy --all-features --verbose -- -D warnings
|
||||
- name: Build
|
||||
run: cargo build --all-features --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --all-features --verbose
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '3.4'
|
||||
- name: Clippy
|
||||
run: cargo clippy --all-features --verbose -- -D warnings
|
||||
- name: Build
|
||||
run: cargo build --all-features --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --all-features --verbose
|
||||
|
|
|
|||
Loading…
Reference in a new issue