summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarijan Smetko <msmetko@msmetko.xyz>2023-03-25 18:59:06 +0100
committerGitHub <noreply@github.com>2023-03-25 17:59:06 +0000
commitb911d1780036a458a6ee5447f4c8e4f37136cba7 (patch)
tree27a3a06dcfebe43e3faa9224677592302864d4d5
parent13ce5f746c946f5695c55642a9af5ead8894f692 (diff)
Add musl build (#809)
Clean up Trigger with everything but release Remove trigger
-rw-r--r--.github/workflows/release.yaml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 31ed5834..39f48a49 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -1,6 +1,5 @@
name: Release
-
env:
MIN_SUPPORTED_RUST_VERSION: "1.51.0"
CICD_INTERMEDIATES_DIR: "_cicd-intermediates"
@@ -21,6 +20,7 @@ jobs:
fail-fast: false
matrix:
job:
+ - { os: ubuntu-20.04 , target: x86_64-unknown-linux-musl }
- { os: ubuntu-20.04 , target: x86_64-unknown-linux-gnu }
- { os: ubuntu-20.04 , target: aarch64-unknown-linux-gnu }
- { os: macos-12 , target: x86_64-apple-darwin }
@@ -35,6 +35,7 @@ jobs:
case ${{ matrix.job.target }} in
arm-unknown-linux-gnueabihf) sudo apt-get -y update ; sudo apt-get -y install gcc-arm-linux-gnueabihf ;;
aarch64-unknown-linux-gnu) sudo apt-get -y update ; sudo apt-get -y install gcc-aarch64-linux-gnu ;;
+ x86_64-unknown-linux-musl) sudo apt-get -y update ; sudo apt-get -y install musl-tools ;;
esac
- name: Extract crate information
@@ -81,6 +82,7 @@ jobs:
esac;
# Figure out what strip tool to use if any
+ # musl builds use the default strip
STRIP="strip"
case ${{ matrix.job.target }} in
arm-unknown-linux-gnueabihf) STRIP="arm-linux-gnueabihf-strip" ;;
@@ -92,7 +94,7 @@ jobs:
BIN_DIR="${{ env.CICD_INTERMEDIATES_DIR }}/stripped-release-bin/"
mkdir -p "${BIN_DIR}"
BIN_NAME="${{ env.PROJECT_NAME }}${EXE_suffix}"
- BIN_PATH="${BIN_DIR}/${BIN_NAME}"
+ BIN_PATH="${BIN_DIR}${BIN_NAME}"
# Copy the release build binary to the result location
cp "target/${{ matrix.job.target }}/release/${BIN_NAME}" "${BIN_DIR}"