-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (51 loc) · 2.13 KB
/
build-basilisk-linux-i686.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
name: Build Basilisk Linux i686
on:
workflow_dispatch:
push:
branches:
- master
- release
jobs:
build-basilisk:
name: Build Basilisk Linux ${{ matrix.config.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- name: GTK3 i686
gtk: gtk3
arch: i686
- name: GTK2 i686
gtk: gtk2
arch: i686
steps:
- name: Free Disk Space
run: |
sudo apt-get update
sudo apt-get remove -y *dotnet* *google-cloud* *aws* *php* google-chrome-stable firefox powershell mono-devel
sudo apt-get autoremove -y
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Copy mozconfig
run: cp mozconfigs/linux/${{ matrix.config.arch }}/${{ matrix.config.gtk }}_unofficial_branding.mozconfig .mozconfig
- name: Update mozconfig for release branch
if: github.ref == 'refs/heads/release'
run: |
sed -i 's/disable-updater/enable-updater/g' .mozconfig
sed -i 's/disable-official-branding/enable-official-branding/g' .mozconfig
- name: Pull official branding files for release branch
if: github.ref == 'refs/heads/release'
run: |
cd basilisk/branding && git clone https://${{ secrets.RPMO_CLONE_CREDENTIALS }}@repo.palemoon.org/Basilisk-Dev/${{ secrets.OFFICIAL_BRANDING_REPO_NAME }}.git official
- name: Update docker build script for release branch
if: github.ref == 'refs/heads/release'
run: |
echo 'su -c "./mach mar" $USERNAME' >> build-scripts/linux/build_basilisk_subscripts/run_inside_docker.sh
- name: Build Basilisk
run: docker run -v $PWD:/share --rm -e UID=$(id -u) -e GID=$(id -g) -e USERNAME=$(whoami) -e GROUPNAME=$(id -gn) -t oraclelinux:8 /share/build-scripts/linux/build_basilisk_subscripts/run_inside_docker.sh
- uses: actions/upload-artifact@v4
with:
name: basilisk-linux-${{ matrix.config.arch }}-${{ matrix.config.gtk }}
path: obj-${{ matrix.config.arch }}-unknown-linux-gnu/dist/basilisk-*