From bd2a85210539b353103c678511cc6d7d105f31da Mon Sep 17 00:00:00 2001 From: Echo J Date: Fri, 3 Jan 2025 16:21:35 +0200 Subject: [PATCH 1/3] Freeze Cargo state for release workflow --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eb2a9ba..fd18176 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,10 +19,10 @@ jobs: target: 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 From 6d0c03862cc9640d80ced95a59162b99356cf7c7 Mon Sep 17 00:00:00 2001 From: Echo J Date: Fri, 3 Jan 2025 16:42:52 +0200 Subject: [PATCH 2/3] Allow manual runs for CI workflow This might make debugging CI issues easier --- .github/workflows/ci-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 8696088..82d3390 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: From 704249b5cce11af12a23d530320c0406e64a2809 Mon Sep 17 00:00:00 2001 From: Echo J Date: Fri, 3 Jan 2025 17:04:25 +0200 Subject: [PATCH 3/3] Switch to a maintained Rust toolchain action This removes the set-output warnings too --- .github/workflows/ci-build.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 82d3390..de2394c 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -22,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 fd18176..7082ff5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,10 +13,10 @@ 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 --locked