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