Merge pull request #997 from cpunion/fix-release

Fix release build
This commit is contained in:
xushiwei
2025-02-16 08:44:48 +08:00
committed by GitHub
2 changed files with 7 additions and 11 deletions

View File

@@ -139,5 +139,8 @@ populate_linux_sysroot() {
debian:bullseye \
/populate_linux_sysroot.sh
}
populate_linux_sysroot amd64 "${LINUX_AMD64_PREFIX}"
populate_linux_sysroot arm64 "${LINUX_ARM64_PREFIX}"
populate_linux_sysroot amd64 "${LINUX_AMD64_PREFIX}" &
populate_linux_sysroot arm64 "${LINUX_ARM64_PREFIX}" &
# Wait for both background processes to complete
wait

View File

@@ -11,18 +11,9 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Cache Darwin sysroot
id: cache-sysroot
uses: actions/cache@v4
with:
path: |
.sysroot/darwin.tar.gz
key: darwin-sysroot-${{ runner.os }}-${{ hashFiles('.github/workflows/populate_darwin_sysroot.sh') }}
- name: Populate Darwin sysroot
if: steps.cache-sysroot.outputs.cache-hit != 'true'
run: bash .github/workflows/populate_darwin_sysroot.sh
- name: Create Darwin sysroot tarball
if: steps.cache-sysroot.outputs.cache-hit != 'true'
run: tar -czvf .sysroot/darwin.tar.gz -C .sysroot darwin
- name: Upload Darwin sysroot tarball
uses: actions/upload-artifact@v4
@@ -44,6 +35,8 @@ jobs:
go-version: 1.23.x
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Download Darwin sysroot tarball
uses: actions/download-artifact@v4
with: