Skip to content

Commit 00fb3a5

Browse files
committedNov 10, 2024
👷 Try using devenv for CI environment
1 parent 1971025 commit 00fb3a5

File tree

1 file changed

+52
-63
lines changed

1 file changed

+52
-63
lines changed
 

‎.github/workflows/artifact.yml

+52-63
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ jobs:
2020

2121
# Steps represent a sequence of tasks that will be executed as part of the job
2222
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
2924
with:
3025
submodules: recursive
3126

@@ -40,81 +35,75 @@ jobs:
4035
git config --global user.email "trickypr@users.noreply.github.com"
4136
git config --global user.name "TrickyPR"
4237
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-
5038
- name: Free up space
5139
run: |
5240
sudo rm -rf /usr/share/dotnet
5341
sudo rm -rf /opt/ghc
5442
sudo rm -rf "/usr/local/share/boost"
5543
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
5644
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
7889
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
9893

9994
- name: Download firefox source and dependencies
100-
run: pnpm gluon download
95+
run: devenv shell download
10196

10297
- 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
11099

111100
- name: Build
112-
run: pnpm gluon build
101+
run: devenv shell build
113102

114103
- name: Package
115104
# .mar files are not properly generated, but it should be fine
116105
continue-on-error: true
117-
run: pnpm gluon package
106+
run: devenv shell package
118107

119108
- name: Rename artifacts
120109
run: |

0 commit comments

Comments
 (0)