Skip to content
Myr

Merge pull request #1795 from serde-rs/actions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Enable GitHub Actions

authored by David Tolnay · committed by GitHub · parents 6052293, 5534bf4 · Browse files · 1 file+128 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+128 added−0 removed

  • other:+128 added−0 removed

1 file+128 added−0 removed

added:.github/workflows/ci.yml+128 added
1name: test23on:4 push:5 pull_request:6 schedule: [cron: "40 1 * * *"]78jobs:9 stable:10 name: Rust stable11 runs-on: ubuntu-latest12 steps:13 - uses: actions/checkout@v214 - uses: dtolnay/rust-toolchain@stable15 - run: cd serde && cargo build --features rc16 - run: cd serde && cargo build --no-default-features17 - run: cd serde_test && cargo build18 - run: cd serde_test && cargo test --features serde/derive,serde/rc1920 beta:21 name: Rust beta22 runs-on: ubuntu-latest23 steps:24 - uses: actions/checkout@v225 - uses: dtolnay/rust-toolchain@beta26 - run: cd serde && cargo build --features rc27 - run: cd test_suite && cargo test2829 nightly:30 name: Rust nightly31 runs-on: ubuntu-latest32 steps:33 - uses: actions/checkout@v234 - uses: dtolnay/rust-toolchain@nightly35 - run: cd serde && cargo build36 - run: cd serde && cargo build --no-default-features37 - run: cd serde && cargo build --no-default-features --features alloc38 - run: cd serde && cargo build --no-default-features --features rc,alloc39 - run: cd serde && cargo test --features derive,rc,unstable40 - run: cd test_suite && cargo test --features unstable41 - run: cd test_suite/no_std && cargo build4243 msrv:44 name: Rust 1.13.045 runs-on: ubuntu-latest46 steps:47 - uses: actions/checkout@v248 - uses: dtolnay/rust-toolchain@1.13.049 - run: cd serde && cargo build --features rc50 - run: cd serde && cargo build --no-default-features51 - run: cd serde_test && cargo build5253 build:54 name: Rust ${{matrix.rust}}55 runs-on: ubuntu-latest56 strategy:57 fail-fast: false58 matrix:59 rust: [1.19.0, 1.20.0, 1.21.0, 1.25.0, 1.26.0, 1.34.0]60 steps:61 - uses: actions/checkout@v262 - uses: dtolnay/rust-toolchain@master63 with:64 toolchain: ${{matrix.rust}}65 - run: cd serde && cargo build --no-default-features66 - run: cd serde && cargo build6768 more:69 name: Rust ${{matrix.rust}}70 runs-on: ubuntu-latest71 strategy:72 fail-fast: false73 matrix:74 rust: [1.27.0, 1.28.0]75 steps:76 - uses: actions/checkout@v277 - uses: dtolnay/rust-toolchain@master78 with:79 toolchain: ${{matrix.rust}}80 # Work around failing to parse manifest because editions are unstable.81 - run: sed -i /test_suite/d Cargo.toml82 - run: cd serde && cargo build --no-default-features83 - run: cd serde && cargo build8485 alloc:86 name: Rust 1.36.087 runs-on: ubuntu-latest88 steps:89 - uses: actions/checkout@v290 - uses: dtolnay/rust-toolchain@1.36.091 - run: cd serde && cargo build --no-default-features --features alloc9293 clippy:94 name: Clippy95 runs-on: ubuntu-latest96 steps:97 - uses: actions/checkout@v298 - uses: dtolnay/rust-toolchain@clippy99 # The need for -Aredundant_field_names here is a Clippy bug.100 # https://github.com/rust-lang/rust-clippy/issues/5356101 - run: cargo clippy -- -D clippy::all -A clippy::redundant_field_names102 - run: cd serde && cargo clippy --features rc,unstable -- -D clippy::all -A clippy::redundant_field_names103 - run: cd serde_derive && cargo clippy -- -D clippy::all104 - run: cd serde_test && cargo clippy -- -D clippy::all -A clippy::redundant_field_names105 - run: cd test_suite && cargo clippy --tests --features unstable -- -D clippy::all -A clippy::redundant_field_names106 - run: cd test_suite/no_std && cargo clippy -- -D clippy::all -A clippy::redundant_field_names107108 emscripten:109 name: Emscripten110 runs-on: ubuntu-latest111 steps:112 - uses: actions/checkout@v2113 - uses: dtolnay/rust-toolchain@nightly114 - uses: actions/setup-node@v1115 with:116 node-version: 9117 - name: Install cargo-web118 run: |119 CARGO_WEB_RELEASE=$(curl -L -s -H Accept:application/json https://github.com/koute/cargo-web/releases/latest)120 CARGO_WEB_VERSION=$(echo "${CARGO_WEB_RELEASE}" | jq -r .tag_name)121 CARGO_WEB_URL="https://github.com/koute/cargo-web/releases/download/${CARGO_WEB_VERSION}/cargo-web-x86_64-unknown-linux-gnu.gz"122 mkdir -p ~/.cargo/bin123 curl -L "${CARGO_WEB_URL}" | gzip -d > ~/.cargo/bin/cargo-web124 chmod +x ~/.cargo/bin/cargo-web125 - run: cd test_suite && cargo web test --target=asmjs-unknown-emscripten --nodejs126 continue-on-error: true127 - run: cd test_suite && cargo web test --target=wasm32-unknown-emscripten --nodejs128 continue-on-error: true