chore: remove arm64 support from build workflows and artifact uploads
This commit is contained in:
@@ -11,9 +11,6 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
@@ -22,6 +19,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile.build
|
file: ./Dockerfile.build
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
tags: cr.jdbnet.co.uk/jdbnet/wails-builder:latest
|
tags: cr.jdbnet.co.uk/jdbnet/wails-builder:latest
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
|
|
||||||
# Build Linux amd64 and Windows (amd64 & arm64) binaries
|
# Build Linux amd64 and Windows amd64 binaries
|
||||||
docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace cr.jdbnet.co.uk/jdbnet/wails-builder:latest bash -c "
|
docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace cr.jdbnet.co.uk/jdbnet/wails-builder:latest bash -c "
|
||||||
# Install frontend dependencies
|
# Install frontend dependencies
|
||||||
cd frontend && npm install && cd ..
|
cd frontend && npm install && cd ..
|
||||||
@@ -32,24 +32,9 @@ jobs:
|
|||||||
# Windows amd64
|
# Windows amd64
|
||||||
wails build -platform windows/amd64 -clean
|
wails build -platform windows/amd64 -clean
|
||||||
cp build/bin/goexplore.exe dist/goexplore-windows-amd64.exe
|
cp build/bin/goexplore.exe dist/goexplore-windows-amd64.exe
|
||||||
|
|
||||||
# Windows arm64
|
|
||||||
wails build -platform windows/arm64 -clean
|
|
||||||
cp build/bin/goexplore.exe dist/goexplore-windows-arm64.exe
|
|
||||||
"
|
"
|
||||||
|
|
||||||
- name: Build Linux ARM64 binary (via QEMU)
|
|
||||||
run: |
|
|
||||||
# Build Linux arm64 binaries (via QEMU)
|
|
||||||
docker run --rm --platform linux/arm64 -v ${{ github.workspace }}:/workspace -w /workspace cr.jdbnet.co.uk/jdbnet/wails-builder:latest bash -c "
|
|
||||||
# Re-install frontend dependencies for arm64 (clears out the amd64 esbuild binary)
|
|
||||||
rm -rf frontend/node_modules
|
|
||||||
cd frontend && npm install && cd ..
|
|
||||||
|
|
||||||
# Linux arm64
|
|
||||||
wails build -platform linux/arm64 -tags webkit2_41 -clean
|
|
||||||
cp build/bin/goexplore dist/goexplore-linux-arm64
|
|
||||||
"
|
|
||||||
|
|
||||||
- name: Upload to Cloudflare R2
|
- name: Upload to Cloudflare R2
|
||||||
env:
|
env:
|
||||||
@@ -60,8 +45,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
aws s3 cp dist/goexplore-linux-amd64 s3://apps/goexplore/goexplore-linux-amd64 --endpoint-url "$R2_ENDPOINT"
|
aws s3 cp dist/goexplore-linux-amd64 s3://apps/goexplore/goexplore-linux-amd64 --endpoint-url "$R2_ENDPOINT"
|
||||||
aws s3 cp dist/goexplore-windows-amd64.exe s3://apps/goexplore/goexplore-windows-amd64.exe --endpoint-url "$R2_ENDPOINT"
|
aws s3 cp dist/goexplore-windows-amd64.exe s3://apps/goexplore/goexplore-windows-amd64.exe --endpoint-url "$R2_ENDPOINT"
|
||||||
aws s3 cp dist/goexplore-windows-arm64.exe s3://apps/goexplore/goexplore-windows-arm64.exe --endpoint-url "$R2_ENDPOINT"
|
|
||||||
aws s3 cp dist/goexplore-linux-arm64 s3://apps/goexplore/goexplore-linux-arm64 --endpoint-url "$R2_ENDPOINT"
|
|
||||||
|
|
||||||
- name: Clean up
|
- name: Clean up
|
||||||
run: sudo rm -rf dist build/bin/*
|
run: sudo rm -rf dist build/bin/*
|
||||||
|
|||||||
Reference in New Issue
Block a user