From e797686f131a66715a07b917e055b1ada48fb82b Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Sat, 18 Nov 2023 11:16:16 -0800 Subject: [PATCH] add container to linux release def (#226) --- .github/workflows/release-linux.yml | 13 ++++++++++++- .github/workflows/release-macos.yml | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-linux.yml b/.github/workflows/release-linux.yml index bf697c9..c4ddec2 100644 --- a/.github/workflows/release-linux.yml +++ b/.github/workflows/release-linux.yml @@ -1,4 +1,4 @@ -name: Create release, build and upload artifacts +name: Create release, build and upload artifacts (Linux) permissions: contents: write @@ -17,6 +17,17 @@ jobs: fail-fast: true matrix: arch: [x86_64, aarch64] + container: + image: rust:1-bookworm + env: + PKG_CONFIG_ALLOW_CROSS: 1 + PKG_CONFIG_PATH: /usr/lib/${{ matrix.arch }}-linux-gnu/pkgconfig/:${PKG_CONFIG_PATH} + CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc + AR_aarch64_unknown_linux_gnu: aarch64-linux-gnu-ar + CC_aarch64_unknown_linux_gnu: aarch64-linux-gnu-gcc + CXX_aarch64_unknown_linux_gnu: aarch64-linux-gnu-g++ + env: + RUST_BACKTRACE: full steps: - name: Checkout Repository uses: actions/checkout@v3 diff --git a/.github/workflows/release-macos.yml b/.github/workflows/release-macos.yml index d57156d..6cf3466 100644 --- a/.github/workflows/release-macos.yml +++ b/.github/workflows/release-macos.yml @@ -1,4 +1,4 @@ -name: Create release, build and upload artifacts +name: Create release, build and upload artifacts (MacOS) permissions: contents: write