diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 8696088..de2394c 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -8,6 +8,7 @@ on: push: branches: - main + workflow_dispatch: jobs: build: @@ -21,10 +22,10 @@ jobs: uses: actions/checkout@v3 - name: Set up Rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: stable - target: ${{ matrix.os == 'windows-latest' && 'x86_64-pc-windows-msvc' || 'x86_64-unknown-linux-gnu' || 'x86_64-apple-darwin' }} + targets: ${{ matrix.os == 'windows-latest' && 'x86_64-pc-windows-msvc' || 'x86_64-unknown-linux-gnu' || 'x86_64-apple-darwin' }} components: clippy - name: Check formatting diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eb2a9ba..7082ff5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,16 +13,16 @@ jobs: uses: actions/checkout@v3 - name: Set up Rust for Windows - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: stable - target: x86_64-pc-windows-msvc + targets: x86_64-pc-windows-msvc - name: Install dependencies - run: cargo fetch + run: cargo fetch --locked - name: Build - run: cargo build --release + run: cargo build --frozen --release - name: Upload artifact (Windows) uses: actions/upload-artifact@v3