Compare commits
10 Commits
23a3f45ec6
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ebcdd6ea93 | ||
|
|
ad68caa640 | ||
|
|
3bbff03d3a | ||
|
|
8c8833f5e8 | ||
|
|
12e3dc5f98 | ||
|
|
33e37e8fe2 | ||
|
|
f3f5794958 | ||
|
|
f15cc3bcdf | ||
|
|
01848a0ea9 | ||
|
|
fb8a413cb6 |
@@ -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
|
with:
|
||||||
- name: Archive production artifacts
|
dotnet-version: "8.0.x"
|
||||||
|
- run: dotnet restore
|
||||||
|
- run: dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true
|
||||||
|
- name: Archive artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: program
|
name: app-${{ matrix.rid }}
|
||||||
path: program
|
path: app
|
||||||
|
|||||||
2
Program.cs
Normal file
2
Program.cs
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// See https://aka.ms/new-console-template for more information
|
||||||
|
Console.WriteLine("Hello, World!");
|
||||||
10
lab7.csproj
Normal file
10
lab7.csproj
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
Reference in New Issue
Block a user