diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ef4de6f..8a25716 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,17 +28,11 @@ jobs: target/ key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.toml') }} - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true + uses: dtolnay/rust-toolchain@stable - name: Install Dependencies run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test + run: cargo test # Run cargo clippy -- -D warnings clippy_check: @@ -58,19 +52,13 @@ jobs: target/ key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.toml') }} - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - profile: minimal components: clippy - override: true - name: Install Dependencies run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev - name: Run clippy - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: -- -D warnings + run: cargo clippy -- -D warnings # Run cargo fmt --all -- --check format: @@ -80,14 +68,8 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - profile: minimal components: rustfmt - override: true - name: Run cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + run: cargo fmt --all -- --check diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5f15f01..4721e7a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,11 +22,9 @@ jobs: - uses: little-core-labs/get-git-tag@v3.0.1 id: get_version - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - target: wasm32-unknown-unknown - override: true + targets: wasm32-unknown-unknown - name: install wasm-bindgen-cli run: | cargo install wasm-bindgen-cli @@ -69,11 +67,9 @@ jobs: - uses: little-core-labs/get-git-tag@v3.0.1 id: get_version - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - target: x86_64-unknown-linux-gnu - override: true + targets: x86_64-unknown-linux-gnu - name: install dependencies run: | sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev @@ -117,11 +113,9 @@ jobs: - uses: little-core-labs/get-git-tag@v3.0.1 id: get_version - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - target: x86_64-pc-windows-msvc - override: true + targets: x86_64-pc-windows-msvc - name: Build run: | @@ -161,11 +155,9 @@ jobs: - uses: little-core-labs/get-git-tag@v3.0.1 id: get_version - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - target: x86_64-apple-darwin - override: true + targets: x86_64-apple-darwin - name: Environment Setup run: | export CFLAGS="-fno-stack-check"