-
Notifications
You must be signed in to change notification settings - Fork 22
94 lines (72 loc) · 2.58 KB
/
package.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
89
90
91
92
93
94
# Copyright CodeMerx 2024
# This file is part of CodemerxDecompile.
# CodemerxDecompile is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# CodemerxDecompile is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with CodemerxDecompile. If not, see<https://www.gnu.org/licenses/>.
name: Package
on:
workflow_dispatch:
jobs:
package-windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Publish
run: dotnet publish -r win-x64 -c Release
working-directory: ./src/CodemerxDecompile
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: CodemerxDecompile-windows-x64
path: src/CodemerxDecompile/bin/Release/net7.0/win-x64/publish
package-linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Publish
run: dotnet publish -r linux-x64 -c Release
working-directory: ./src/CodemerxDecompile
- name: Archive artifacts
run: tar -czpf CodemerxDecompile-linux-x64.tar.gz -C ./src/CodemerxDecompile/bin/Release/net7.0/linux-x64/publish .
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: CodemerxDecompile-linux-x64
path: CodemerxDecompile-linux-x64.tar.gz
package-macos:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Publish
run: dotnet publish -r osx-arm64 -c Release
working-directory: ./src/CodemerxDecompile
- name: Build .app bundle
run: build/macos/build-application-bundle.sh
- name: Archive artifacts
run: tar -czpf CodemerxDecompile-macos-arm64.tar.gz CodemerxDecompile.app
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: CodemerxDecompile-macos-arm64
path: CodemerxDecompile-macos-arm64.tar.gz