-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
10,391 additions
and
10,391 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,72 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
paths: ['**.rs', '**.toml', '**.yml', '**.lock'] | ||
pull_request: | ||
paths: ['**.rs', '**.toml', '**.yml', '**.lock'] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
ubuntu: | ||
name: full check on ubuntu (${{ matrix.toolchain }} channel) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: [stable, beta, nightly] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: switch to ${{ matrix.toolchain }} channel | ||
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} && rustup component add rustfmt clippy | ||
- name: build | ||
run: cargo b -vv | ||
- name: fmt and clippy check | ||
run: cargo fmt -- --check && cargo clippy -- -D warnings | ||
- name: test | ||
run: cargo t -v | ||
|
||
msys2: | ||
name: full check on windows (msys2 - ${{ matrix.sys }}) | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- { sys: CLANG64, prefix: clang64, cc: clang } | ||
- { sys: UCRT64, prefix: ucrt64, cc: gcc } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: msys2/setup-msys2@v2 | ||
with: | ||
update: true | ||
msystem: ${{ matrix.sys }} | ||
location: 'D:\M' | ||
pacboy: >- | ||
rust:p | ||
mpc:p | ||
toolchain:p | ||
- name: hack rustup | ||
run: | | ||
rustup toolchain link msys2 D:\M\msys64\${{ matrix.prefix }} | ||
rustup default msys2 | ||
- name: Add staging repo | ||
shell: msys2 {0} | ||
run: | | ||
cp /etc/pacman.conf /etc/pacman.conf.bak | ||
grep -qFx '[staging]' /etc/pacman.conf || sed -i '/^# \[staging\]/,/^$/ s|^# ||g' /etc/pacman.conf | ||
- name: Update using staging | ||
run: | | ||
msys2 -c 'pacman --noconfirm -Suuy' | ||
msys2 -c 'pacman --noconfirm -Suu' | ||
- name: build | ||
shell: msys2 {0} | ||
run: pkg-config --libs-only-L --keep-system-libs gmp && CC=${{ matrix.cc }} cargo b -vv | ||
- name: clippy | ||
shell: msys2 {0} | ||
run: cargo clippy -- -D warnings | ||
- name: test | ||
shell: msys2 {0} | ||
run: cargo t -v | ||
name: CI | ||
|
||
on: | ||
push: | ||
paths: ['**.rs', '**.toml', '**.yml', '**.lock'] | ||
pull_request: | ||
paths: ['**.rs', '**.toml', '**.yml', '**.lock'] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
ubuntu: | ||
name: full check on ubuntu (${{ matrix.toolchain }} channel) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: [stable, beta, nightly] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: switch to ${{ matrix.toolchain }} channel | ||
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} && rustup component add rustfmt clippy | ||
- name: build | ||
run: cargo b -vv | ||
- name: fmt and clippy check | ||
run: cargo fmt -- --check && cargo clippy -- -D warnings | ||
- name: test | ||
run: cargo t -v | ||
|
||
msys2: | ||
name: full check on windows (msys2 - ${{ matrix.sys }}) | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- { sys: CLANG64, prefix: clang64, cc: clang } | ||
- { sys: UCRT64, prefix: ucrt64, cc: gcc } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: msys2/setup-msys2@v2 | ||
with: | ||
update: true | ||
msystem: ${{ matrix.sys }} | ||
location: 'D:\M' | ||
pacboy: >- | ||
rust:p | ||
mpc:p | ||
toolchain:p | ||
- name: hack rustup | ||
run: | | ||
rustup toolchain link msys2 D:\M\msys64\${{ matrix.prefix }} | ||
rustup default msys2 | ||
- name: Add staging repo | ||
shell: msys2 {0} | ||
run: | | ||
cp /etc/pacman.conf /etc/pacman.conf.bak | ||
grep -qFx '[staging]' /etc/pacman.conf || sed -i '/^# \[staging\]/,/^$/ s|^# ||g' /etc/pacman.conf | ||
- name: Update using staging | ||
run: | | ||
msys2 -c 'pacman --noconfirm -Suuy' | ||
msys2 -c 'pacman --noconfirm -Suu' | ||
- name: build | ||
shell: msys2 {0} | ||
run: pkg-config --libs-only-L --keep-system-libs gmp && CC=${{ matrix.cc }} cargo b -vv | ||
- name: clippy | ||
shell: msys2 {0} | ||
run: cargo clippy -- -D warnings | ||
- name: test | ||
shell: msys2 {0} | ||
run: cargo t -v |
Oops, something went wrong.