forked from ClearMeasure/AliaSQL
-
Notifications
You must be signed in to change notification settings - Fork 1
82 lines (80 loc) · 2.88 KB
/
release.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
on:
release:
types: [created]
name: Handle Release
jobs:
generate_windows:
name: Create windows release-artifacts
runs-on: ubuntu-latest
env:
BUILD_FOR: "win-x64 win-arm64"
steps:
- name: Checkout the repository
uses: actions/checkout@master
- uses: actions/setup-dotnet@master
with:
dotnet-version: '6.0.x'
- name: Generate artifacts
run: |
cd source/AliaSQL.Console
mkdir artifacts
for arch in $BUILD_FOR; do
dotnet publish --runtime $arch --self-contained -p:PublishSingleFile=true -p:PublishTrimmed=true -p:DebugType=None -p:DebugSymbols=false -o publish/$arch
zip -x *.pdb -x *.config -rj artifacts/AliaSQL-$arch.zip publish/$arch/*
done
- name: Upload the artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'source/AliaSQL.Console/artifacts/*.zip'
generate_linux:
name: Create linux release-artifacts
runs-on: ubuntu-latest
env:
BUILD_FOR: "linux-x64 linux-musl-x64 linux-arm linux-arm64"
steps:
- name: Checkout the repository
uses: actions/checkout@master
- uses: actions/setup-dotnet@master
with:
dotnet-version: '6.0.x'
- name: Generate artifacts
run: |
cd source/AliaSQL.Console
mkdir artifacts
for arch in $BUILD_FOR; do
dotnet publish --runtime $arch --self-contained -p:PublishSingleFile=true -p:PublishTrimmed=true -p:DebugType=None -p:DebugSymbols=false -o publish/$arch
zip -x *.pdb -x *.config -rj artifacts/AliaSQL-$arch.zip publish/$arch/*
done
- name: Upload the artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'source/AliaSQL.Console/artifacts/*.zip'
generate_mac:
name: Create macOS release-artifacts
runs-on: ubuntu-latest
env:
BUILD_FOR: "osx-x64 osx.11.0-arm64"
steps:
- name: Checkout the repository
uses: actions/checkout@master
- uses: actions/setup-dotnet@master
with:
dotnet-version: '6.0.x'
- name: Generate artifacts
run: |
cd source/AliaSQL.Console
mkdir artifacts
for arch in $BUILD_FOR; do
dotnet publish --runtime $arch --self-contained -p:PublishSingleFile=true -p:PublishTrimmed=true -p:DebugType=None -p:DebugSymbols=false -o publish/$arch
zip -x *.pdb -x *.config -rj artifacts/AliaSQL-$arch.zip publish/$arch/*
done
- name: Upload the artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'source/AliaSQL.Console/artifacts/*.zip'