-
-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (80 loc) · 3.48 KB
/
dotnet-desktop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: CI and Release
on:
push:
branches: [ "main" ]
jobs:
macos64:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore src/PostgreSQL.Migrations.Console/Migrations.Console.csproj
- name: Publish x64 application
run: dotnet publish -r osx-x64 -c Release --self-contained true src/PostgreSQL.Migrations.Console/Migrations.Console.csproj
- name: Publish arm64 application
run: dotnet publish -r osx-arm64 -c Release --self-contained true src/PostgreSQL.Migrations.Console/Migrations.Console.csproj
- name: Upload x64 artifacts
uses: actions/upload-artifact@v4
with:
name: macos64
path: src/PostgreSQL.Migrations.Console/bin/Release/net8.0/osx-x64/publish/dbmigrations
- name: Upload arm64 artifacts
uses: actions/upload-artifact@v4
with:
name: macosarm64
path: src/PostgreSQL.Migrations.Console/bin/Release/net8.0/osx-arm64/publish/dbmigrations
windows64:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore src/PostgreSQL.Migrations.Console/Migrations.Console.csproj
- name: Publish x64 application
run: dotnet publish -r win-x64 -c Release -p:PublishAot=false --self-contained true -p:PublishSingleFile=true src/PostgreSQL.Migrations.Console/Migrations.Console.csproj
- name: Publish arm64 application
run: dotnet publish -r win-arm64 -c Release --self-contained true src/PostgreSQL.Migrations.Console/Migrations.Console.csproj
- name: Upload x64 artifacts
uses: actions/upload-artifact@v4
with:
name: windows64
path: src/PostgreSQL.Migrations.Console/bin/Release/net8.0/win-x64/publish/dbmigrations.exe
- name: Upload arm64 artifacts
uses: actions/upload-artifact@v4
with:
name: windowsarm64
path: src/PostgreSQL.Migrations.Console/bin/Release/net8.0/win-arm64/publish/dbmigrations.exe
linux64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: update cache
run: sudo apt-get update -qq
- name: apt-update
run: sudo apt-get install -y --no-install-recommends qemu qemu-user-static binfmt-support debootstrap binutils-arm-linux-gnueabihf binutils-aarch64-linux-gnu binutils-arm-linux-gnueabi libstdc++-12-dev clang-12
- name: Publish x64 application
run: dotnet publish -r linux-x64 -c Release --self-contained true src/PostgreSQL.Migrations.Console/Migrations.Console.csproj
- name: Publish arm x64 application
run: dotnet publish -r linux-arm64 -c Release -p:PublishAot=false --self-contained true -p:PublishSingleFile=true src/PostgreSQL.Migrations.Console/Migrations.Console.csproj
- uses: actions/upload-artifact@v4
with:
name: linux64
path: src/PostgreSQL.Migrations.Console/bin/Release/net8.0/linux-x64/publish/dbmigrations
- uses: actions/upload-artifact@v4
with:
name: linuxarm64
path: src/PostgreSQL.Migrations.Console/bin/Release/net8.0/linux-arm64/publish/dbmigrations