Compare commits
7 Commits
7670db89c0
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c380e85691 | ||
|
|
2ca3357f1b | ||
|
|
5b5578c111 | ||
|
|
acdad02cab | ||
|
|
cb1cf790b4 | ||
|
|
459e29b97d | ||
|
|
00e301c5cf |
@@ -4,12 +4,18 @@ on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
rid: ["win-x64", "linux-x64"]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: build using gcc
|
||||
run: gcc -Wall -Werror main.c -o program
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
- uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
name: program
|
||||
path: program
|
||||
dotnet-version: '8.0.x'
|
||||
- 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