From 22978799ad220bde4eb24850a6c1bd084ef9429e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 5 Dec 2025 20:49:02 +0000 Subject: [PATCH 1/3] Initial plan From ee92f745b9d7580f7cb33844857ca198c8d82e3f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 5 Dec 2025 20:51:28 +0000 Subject: [PATCH 2/3] Fix GitHub Actions by upgrading Rust to 1.83 and removing unsupported platform Co-authored-by: mitchross <6330506+mitchross@users.noreply.github.com> --- .github/workflows/ghcr.yml | 3 --- Cargo.toml | 2 +- Dockerfile.build | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ghcr.yml b/.github/workflows/ghcr.yml index 33370981..6a5a2eda 100644 --- a/.github/workflows/ghcr.yml +++ b/.github/workflows/ghcr.yml @@ -29,14 +29,11 @@ jobs: platform: - linux/amd64 - linux/arm64 - - linux/arm/v7 include: - platform: linux/amd64 target: x86_64-unknown-linux-musl - platform: linux/arm64 target: aarch64-unknown-linux-musl - - platform: linux/arm/v7 - target: armv7-unknown-linux-musleabihf steps: - name: Checkout repository diff --git a/Cargo.toml b/Cargo.toml index 44641f05..f32b20dd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ authors = [ "spikecodes <19519553+spikecodes@users.noreply.github.com>", ] edition = "2021" -rust-version = "1.81" +rust-version = "1.83" default-run = "redlib" [dependencies] diff --git a/Dockerfile.build b/Dockerfile.build index f9279500..a620774a 100644 --- a/Dockerfile.build +++ b/Dockerfile.build @@ -1,5 +1,5 @@ # Build stage -FROM rust:1.81-alpine AS builder +FROM rust:1.83-alpine AS builder ARG TARGET From d3d25c3fe8da7b6ae2c46977e146257141958d38 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 5 Dec 2025 20:55:11 +0000 Subject: [PATCH 3/3] Fix workflow to properly handle pull request builds without pushing Co-authored-by: mitchross <6330506+mitchross@users.noreply.github.com> --- .github/workflows/ghcr.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ghcr.yml b/.github/workflows/ghcr.yml index 6a5a2eda..2f9897eb 100644 --- a/.github/workflows/ghcr.yml +++ b/.github/workflows/ghcr.yml @@ -75,19 +75,21 @@ jobs: platforms: ${{ matrix.platform }} file: ./Dockerfile.build labels: ${{ steps.meta.outputs.labels }} - outputs: type=image,name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=${{ github.event_name != 'pull_request' }} + outputs: type=image,name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},push-by-digest=${{ github.event_name != 'pull_request' }},name-canonical=true,push=${{ github.event_name != 'pull_request' }} cache-from: type=gha cache-to: type=gha,mode=max build-args: | TARGET=${{ matrix.target }} - name: Export digest + if: github.event_name != 'pull_request' run: | mkdir -p /tmp/digests digest="${{ steps.build.outputs.digest }}" touch "/tmp/digests/${digest#sha256:}" - name: Upload digest + if: github.event_name != 'pull_request' uses: actions/upload-artifact@v4 with: name: digests-${{ matrix.target }}