@@ -3,19 +3,12 @@ on: [push]
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
rid: ["win-x64", "linux-x64"]
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v3
|
- name: build using gcc
|
||||||
with:
|
run: gcc -Wall -Werror main.c -o program
|
||||||
dotnet-version: "8.0.x"
|
- name: Archive production artifacts
|
||||||
- run: dotnet restore
|
|
||||||
- run: dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true
|
|
||||||
|
|
||||||
- name: Upload ${{ matrix.rid }} Artifact
|
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: app-${{ matrix.rid }}
|
name: program
|
||||||
path: app
|
path: program
|
||||||
|
|||||||
Reference in New Issue
Block a user