-
Notifications
You must be signed in to change notification settings - Fork 45
89 lines (87 loc) · 2.85 KB
/
linux_packages.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
name: Linux packages
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
archlinux-gcc:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set permissions
run: chmod 777 ${{ github.workspace }}
- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: muttleyxd/a3ul_archlinux_build:latest
options: -v ${{ github.workspace }}:/github/workspace
run: |
set -euxo pipefail
git config --global --add safe.directory '*' # required as Git complains about permissions (different user mounts workspace, different user builds it)
cd /github/workspace
tools/ci/packaging/archlinux/build.sh /github/workspace /tmp/build /tmp/build
ls /tmp/build
cp /tmp/build/*.pkg.tar* /github/workspace
- name: draft release
if: github.ref == 'refs/heads/master'
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.actionrelease }}
with:
file: "*.pkg.tar.*"
draft: true
appimage-gcc-8:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set permissions
run: chmod 777 ${{ github.workspace }}
- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: muttleyxd/a3ul_appimage_build:latest
options: -v ${{ github.workspace }}:/github/workspace
run: |
set -eux
cd /github/workspace
tools/ci/packaging/appimage/build.sh /github/workspace /tmp/build /tmp/build
cp /tmp/build/*.AppImage /github/workspace
- name: draft release
if: github.ref == 'refs/heads/master'
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.actionrelease }}
with:
file: "*.AppImage"
draft: true
dayz-appimage-gcc-8:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set permissions
run: chmod 777 ${{ github.workspace }}
- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: muttleyxd/a3ul_appimage_build:latest
options: -v ${{ github.workspace }}:/github/workspace
run: |
set -eux
cd /github/workspace
tools/ci/packaging/appimage_dayz/build.sh /github/workspace /tmp/build /tmp/build
cp /tmp/build/*.AppImage /github/workspace
- name: draft release
if: github.ref == 'refs/heads/master'
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.actionrelease }}
with:
file: "*.AppImage"
draft: true