diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index de532ca..eb68d6f 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -29,19 +29,12 @@ jobs: # binary_postfix: ".exe" steps: - - name: Installing Rust toolchain - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - override: true - - name: Checkout repository - uses: actions/checkout@v2 - - name: Cargo build - uses: actions-rs/cargo@v1 - with: - command: build - toolchain: ${{ matrix.rust }} - args: --release --target ${{ matrix.target }} + targets: "x86_64-apple-darwin, x86_64-unknown-linux-gnu, x86_64-pc-windows-msvc" + - uses: actions/checkout@v2 + - run: cargo build --release --target ${{ matrix.target }} - name: Packaging final binary shell: bash @@ -69,11 +62,5 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - uses: actions-rs/cargo@v1 - with: - command: publish - args: --token ${{ secrets.CARGO_API_KEY }} --allow-dirty + - uses: dtolnay/rust-toolchain@stable + - run: cargo publish --token ${{ secrets.CARGO_API_KEY }} --allow-dirty