ci: config release build

This commit is contained in:
Li Jie
2025-01-09 13:34:27 +08:00
parent 09c022e209
commit dfa7effa14
2 changed files with 19 additions and 1 deletions

View File

@@ -11,9 +11,18 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Cache Darwin sysroot
id: cache-sysroot
uses: actions/cache@v3
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
@@ -32,7 +41,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.23.x
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Download Darwin sysroot tarball