-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (43 loc) · 1.22 KB
/
build.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
name: build
on:
push:
pull_request:
env:
sfall_version: 4.4.3.1
mpack_version: 4.4.3
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: ShellCheck
uses: ludeeus/action-shellcheck@master
- name: Install wine
uses: devopsx/gha-ubuntu-i386-fix@master
- name: Install packages
run: |
sudo DEBIAN_FRONTEND=noninteractive eatmydata apt-get install -o=Dpkg::Use-Pty=0 -y crudini dos2unix gcc p7zip
WINEARCH=win32 eatmydata wineboot
- name: Build and package
run: |
set -xeu -o pipefail
. extra/env.sh
./extra/prepare.sh
set -xeu -o pipefail
./extra/buildall.sh
./extra/package.sh
- name: Upload artifacts - main zip
uses: actions/upload-artifact@v4
if: "!startsWith(github.ref, 'refs/tags/')"
with:
name: party_orders.zip
path: party_orders*.zip
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
party_orders*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}