Add musl build for ci
This commit is contained in:
15
.github/workflows/github-actions.yml
vendored
15
.github/workflows/github-actions.yml
vendored
@@ -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
|
||||
@@ -63,6 +73,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
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user