Compare commits
7 Commits
7670db89c0
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c380e85691 | ||
|
|
2ca3357f1b | ||
|
|
5b5578c111 | ||
|
|
acdad02cab | ||
|
|
cb1cf790b4 | ||
|
|
459e29b97d | ||
|
|
00e301c5cf |
@@ -4,12 +4,18 @@ 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
|
||||||
- name: build using gcc
|
- uses: actions/setup-dotnet@v3
|
||||||
run: gcc -Wall -Werror main.c -o program
|
|
||||||
- name: Archive production artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
with:
|
||||||
name: program
|
dotnet-version: '8.0.x'
|
||||||
path: program
|
- run: dotnet restore
|
||||||
|
- run: dotnet publish -o app -r linux-x64 --sc /p:PublishSingleFile=true,AssemblyName=app
|
||||||
|
- run: tar cf app=${{ matrix.rid }}.tar app/
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: app-${{ matrix.rid }}.tar
|
||||||
|
path: app-${{ matrix.rid }}.tar
|
||||||
Reference in New Issue
Block a user