Skip to content

Commit

Permalink
ci: Adjust timeouts for cross-compilation jobs in release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Eden Reich <[email protected]>
  • Loading branch information
edenreich committed Feb 14, 2025
1 parent eae8ff3 commit 4f5d9c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ jobs:
name: Build and Upload Artifacts
needs: github_release
if: needs.github_release.outputs.new_release_published == 'true'
timeout-minutes: 25
permissions:
contents: write
packages: write
Expand All @@ -114,13 +113,17 @@ jobs:
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
arch_platform: linux/amd64
timeout: 10
- os: ubuntu-latest
target: aarch64-unknown-linux-musl
arch_platform: linux/arm64
timeout: 40 # Cross-compilation takes longer
- os: macos-latest
target: x86_64-apple-darwin
timeout: 10
- os: macos-latest
target: aarch64-apple-darwin
timeout: 10
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
Expand Down Expand Up @@ -182,6 +185,7 @@ jobs:
&& rm -rf *.tgz
- name: Build binary for ${{ matrix.target }}
timeout-minutes: ${{ matrix.timeout }}
env:
PKG_CONFIG_ALLOW_CROSS: 1
RUSTFLAGS: "-C target-feature=+crt-static"
Expand Down

0 comments on commit 4f5d9c8

Please sign in to comment.