20
20
21
21
# Steps represent a sequence of tasks that will be executed as part of the job
22
22
steps :
23
- - name : Install Node.js
24
- uses : actions/setup-node@v3
25
- with :
26
- node-version : 20
27
-
28
- - uses : actions/checkout@v3
23
+ - uses : actions/checkout@v4
29
24
with :
30
25
submodules : recursive
31
26
@@ -40,81 +35,75 @@ jobs:
40
35
git config --global user.email "trickypr@users.noreply.github.com"
41
36
git config --global user.name "TrickyPR"
42
37
43
- - name : Install system dependencies
44
- run : |
45
- sudo apt-get update --fix-missing
46
- sudo apt-get update
47
- sudo apt-get install meson dos2unix yasm nasm build-essential libgtk2.0-dev libpython3-dev m4 uuid libasound2-dev libcurl4-openssl-dev libdbus-1-dev libdrm-dev libdbus-glib-1-dev libdbus-glib-1-dev libgtk-3-dev libpulse-dev libx11-xcb-dev libxt-dev xvfb lld llvm
48
- pip install pycairo testresources
49
-
50
38
- name : Free up space
51
39
run : |
52
40
sudo rm -rf /usr/share/dotnet
53
41
sudo rm -rf /opt/ghc
54
42
sudo rm -rf "/usr/local/share/boost"
55
43
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
56
44
57
- - name : Install sccache
58
- env :
59
- LINK : https://github.com/mozilla/sccache/releases/download
60
- SCCACHE_VERSION : 0.2.13
61
- run : |
62
- SCCACHE_FILE=sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl
63
- mkdir -p $HOME/.local/bin
64
- curl -L "$LINK/$SCCACHE_VERSION/$SCCACHE_FILE.tar.gz" | tar xz
65
- mv -f $SCCACHE_FILE/sccache $HOME/.local/bin/sccache
66
- echo "$HOME/.local/bin" >> $GITHUB_PATH
67
-
68
- - name : Save sccache
69
- uses : actions/cache@v3
70
- continue-on-error : false
71
- with :
72
- path : /home/runner/.cache/sccache
73
- key : ${{ runner.os }}-sccache
74
-
75
- - uses : pnpm/action-setup@v2
76
- name : Install pnpm
77
- id : pnpm-install
45
+ # - name: Install sccache
46
+ # env:
47
+ # LINK: https://github.com/mozilla/sccache/releases/download
48
+ # SCCACHE_VERSION: 0.2.13
49
+ # run: |
50
+ # SCCACHE_FILE=sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl
51
+ # mkdir -p $HOME/.local/bin
52
+ # curl -L "$LINK/$SCCACHE_VERSION/$SCCACHE_FILE.tar.gz" | tar xz
53
+ # mv -f $SCCACHE_FILE/sccache $HOME/.local/bin/sccache
54
+ # echo "$HOME/.local/bin" >> $GITHUB_PATH
55
+
56
+ # - name: Save sccache
57
+ # uses: actions/cache@v3
58
+ # continue-on-error: false
59
+ # with:
60
+ # path: /home/runner/.cache/sccache
61
+ # key: ${{ runner.os }}-sccache
62
+
63
+ # - uses: pnpm/action-setup@v2
64
+ # name: Install pnpm
65
+ # id: pnpm-install
66
+ # with:
67
+ # version: 8
68
+ # run_install: false
69
+
70
+ # - name: Get pnpm store directory
71
+ # id: pnpm-cache
72
+ # shell: bash
73
+ # run: |
74
+ # echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
75
+
76
+ # - uses: actions/cache@v3
77
+ # name: Setup pnpm cache
78
+ # with:
79
+ # path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
80
+ # key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
81
+ # restore-keys: |
82
+ # ${{ runner.os }}-pnpm-store-
83
+
84
+ # - name: Install dependencies
85
+ # run: pnpm install
86
+
87
+ - uses : cachix/install-nix-action@v26
88
+ - uses : cachix/cachix-action@v14
78
89
with :
79
- version : 8
80
- run_install : false
81
-
82
- - name : Get pnpm store directory
83
- id : pnpm-cache
84
- shell : bash
85
- run : |
86
- echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
87
-
88
- - uses : actions/cache@v3
89
- name : Setup pnpm cache
90
- with :
91
- path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
92
- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
93
- restore-keys : |
94
- ${{ runner.os }}-pnpm-store-
95
-
96
- - name : Install dependencies
97
- run : pnpm install
90
+ name : devenv
91
+ - name : Install devenv.sh
92
+ run : nix profile install nixpkgs#devenv
98
93
99
94
- name : Download firefox source and dependencies
100
- run : pnpm gluon download
95
+ run : devenv shell download
101
96
102
97
- name : Import
103
- run : pnpm gluon import
104
-
105
- - name : Bootstrap
106
- run : |
107
- cd engine
108
- ./mach --no-interactive bootstrap --application-choice browser
109
- cd ..
98
+ run : devenv shell import
110
99
111
100
- name : Build
112
- run : pnpm gluon build
101
+ run : devenv shell build
113
102
114
103
- name : Package
115
104
# .mar files are not properly generated, but it should be fine
116
105
continue-on-error : true
117
- run : pnpm gluon package
106
+ run : devenv shell package
118
107
119
108
- name : Rename artifacts
120
109
run : |
0 commit comments