Switch to alpine for Linux builds
This commit is contained in:
21
.github/workflows/hero_build.yml
vendored
21
.github/workflows/hero_build.yml
vendored
@@ -16,10 +16,10 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- target: x86_64-unknown-linux-musl
|
- target: x86_64-unknown-linux-musl
|
||||||
os: ubuntu-latest
|
os: alpine-latest
|
||||||
short-name: linux-i64
|
short-name: linux-i64
|
||||||
- target: aarch64-unknown-linux-musl
|
- target: aarch64-unknown-linux-musl
|
||||||
os: ubuntu-latest
|
os: alpine-latest
|
||||||
short-name: linux-arm64
|
short-name: linux-arm64
|
||||||
arch: arm64
|
arch: arm64
|
||||||
- target: aarch64-apple-darwin
|
- target: aarch64-apple-darwin
|
||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
# os: macos-13
|
# os: macos-13
|
||||||
# short-name: macos-i64
|
# short-name: macos-i64
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
||||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
|
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
|
||||||
@@ -38,11 +38,16 @@ jobs:
|
|||||||
- uses: maxim-lobanov/setup-xcode@v1
|
- uses: maxim-lobanov/setup-xcode@v1
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
with:
|
with:
|
||||||
xcode-version: latest-stable
|
xcode-version: latest-stable
|
||||||
|
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
# - name: Setup dependencies on Alpine
|
||||||
|
# if: runner.os == 'Linux'
|
||||||
|
# run: |
|
||||||
|
# sudo apk add --no-cache gcc musl-dev openssl-dev openssl-libs-static
|
||||||
|
|
||||||
- name: Setup V & Herolib
|
- name: Setup V & Herolib
|
||||||
id: setup
|
id: setup
|
||||||
run: |
|
run: |
|
||||||
@@ -59,12 +64,16 @@ jobs:
|
|||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
v -w -d use_openssl -enable-globals cli/hero.v -o cli/hero-${{ matrix.target }}
|
if [ "${{ runner.os }}" = "Linux" ]; then
|
||||||
|
v -w -d use_openssl -enable-globals -cflags -cc gcc -static cli/hero.v -o cli/hero-${{ matrix.target }}
|
||||||
|
else
|
||||||
|
v -w -d use_openssl -enable-globals cli/hero.v -o cli/hero-${{ matrix.target }}
|
||||||
|
fi
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: hero-${{ matrix.target }}
|
name: hero-${{ matrix.target }}
|
||||||
path: cli/hero-${{ matrix.target }}
|
path: cli/hero-${{ matrix.target }}
|
||||||
|
|
||||||
release_hero:
|
release_hero:
|
||||||
needs: build
|
needs: build
|
||||||
|
|||||||
Reference in New Issue
Block a user