Dotnet publish, publish artifact

This commit is contained in:
2022-12-19 17:04:10 +01:00
parent 4d7d12fe5f
commit ddb452893d

View File

@@ -8,10 +8,12 @@ jobs:
strategy: strategy:
matrix: matrix:
target: target:
- triple: x86_64-pc-windows-gnu - runtime: x86_64-pc-windows-gnu
runner: windows-latest runner: windows-latest
- triple: x86_64-unknown-linux-gnu name: windows
- runtime: x86_64-unknown-linux-gnu
runner: ubuntu-latest runner: ubuntu-latest
name: linux
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup dotnet - name: Setup dotnet
@@ -21,4 +23,8 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: dotnet restore src/Alma run: dotnet restore src/Alma
- name: Build - name: Build
run: dotnet build src/Alma run: dotnet publish -r ${{ matrix.target.runtime }} -o /app/ src/Alma
- uses: actions/upload-artifact@v3
with:
name: alma-${{ matrix.target.name }}
path: /app/