Add musl build for ci

This commit is contained in:
2024-03-01 23:07:42 +00:00
parent 6d39621196
commit 085813ee7c

View File

@@ -21,12 +21,17 @@ jobs:
name: linux
outputname: Alma
version_script: .scripts/versioning.sh
- runtime: linux-musl-x64
runner: ubuntu-latest
name: linux-musl
outputname: Alma
version_script: .scripts/versioning.sh
steps:
- uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
dotnet-version: '8.0.x'
- name: Patch version
run: ${{ matrix.target.version_script }}
continue-on-error: true
@@ -53,6 +58,11 @@ jobs:
with:
name: alma-linux
path: app/linux/
- uses: actions/download-artifact@v3
name: Download Linux musl artifacts
with:
name: alma-linux
path: app/linux-musl/
- name: Create release directory
run: mkdir release
@@ -62,6 +72,9 @@ jobs:
- name: Copy linux executable
run: cp app/linux/Alma release/alma-linux
- name: Copy linux-musl executable
run: cp app/linux-musl/Alma release/alma-linux-musl
- uses: "marvinpinto/action-automatic-releases@latest"
name: Create release