提交 d44b8149 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

CI: remove unmaintained actions-rs/cargo actions

Fixes #1215

Also cosmetic changes in other CI files.
上级 40e1fef3
......@@ -27,7 +27,7 @@ jobs:
runs-on: ${{ matrix.ci.os }}
env:
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD: "true"
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD: 'true'
steps:
- name: Checkout
......@@ -47,8 +47,13 @@ jobs:
restore-keys: |
${{ matrix.ci.os }}-node-
# NOTE: Add --force since otherwise `npm ci` fails in Node 26 because
# NOTE: Add --force since otherwise `npm ci` fails in Node 16 because
# @octokit/auth-token dev dependency requires Node >= 16.
- run: npm ci --force
- run: npm run lint:node
- run: npm run test:node
- name: Install
run: npm ci --force
- name: Lint
run: npm run lint:node
- name: Test
run: npm run test:node
......@@ -23,6 +23,9 @@ jobs:
runs-on: ${{ matrix.os }}
env:
KEEP_BUILD_ARTIFACTS: '1'
steps:
- name: Checkout
uses: actions/checkout@v3
......@@ -36,21 +39,10 @@ jobs:
key: ${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check
- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings
run: cargo clippy --all-targets -- -D warnings
- name: cargo test
uses: actions-rs/cargo@v1
env:
KEEP_BUILD_ARTIFACTS: '1'
with:
command: test
args: --verbose
run: cargo test --verbose
......@@ -44,7 +44,7 @@ jobs:
env:
CC: ${{ matrix.build.cc }}
CXX: ${{ matrix.build.cxx }}
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD: "true"
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD: 'true'
steps:
- name: Checkout
......@@ -73,7 +73,10 @@ jobs:
restore-keys: |
${{ matrix.build.os }}-node-${{matrix.build.cc}}-
- run: npm run worker:build
- run: npm run test:worker
- name: Build
run: npm run worker:build
- name: Test
run: npm run test:worker
# TODO: Maybe fix this one day.
if: runner.os != 'Windows'
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论