mirror of
https://github.com/openharmony/third_party_rust_rust-url.git
synced 2026-06-30 21:07:58 -04:00
Add configuration for GitHub Actions
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['master']
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
Test:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
rust: [1.36.0, stable, beta, nightly]
|
||||
exclude:
|
||||
- os: macos-latest
|
||||
rust: 1.36.0
|
||||
- os: windows-latest
|
||||
rust: 1.36.0
|
||||
- os: macos-latest
|
||||
rust: beta
|
||||
- os: windows-latest
|
||||
rust: beta
|
||||
- os: macos-latest
|
||||
rust: nightly
|
||||
- os: windows-latest
|
||||
rust: nightly
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: ${{ matrix.rust }}
|
||||
override: true
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --all-targets
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
|
||||
WASM:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
target: wasm32-unknown-unknown
|
||||
override: true
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --target wasm32-unknown-unknown
|
||||
|
||||
Lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
components: rustfmt, clippy
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
- uses: actions-rs/cargo@v1
|
||||
if: always()
|
||||
with:
|
||||
command: clippy
|
||||
args: --workspace --all-targets -- -D warnings
|
||||
|
||||
Audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: EmbarkStudios/cargo-deny-action@v0
|
||||
@@ -1,7 +1,7 @@
|
||||
rust-url
|
||||
========
|
||||
|
||||
[](https://travis-ci.com/servo/rust-url) [](https://ci.appveyor.com/project/Manishearth/rust-url)
|
||||
[](https://github.com/servo/rust-url/actions?query=workflow%3ACI)
|
||||
|
||||
URL library for Rust, based on the [URL Standard](https://url.spec.whatwg.org/).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user