10
10
SHELL : /bin/bash
11
11
12
12
jobs :
13
- mac :
14
- runs-on : macos-latest
15
- strategy :
16
- fail-fast : false
17
- matrix :
18
- features : ["--features debugmozjs", ""]
19
- steps :
20
- - uses : actions/checkout@v2
21
- - name : Install deps
22
- run :
brew install python [email protected] ccache llvm yasm
23
- - uses : dtolnay/rust-toolchain@stable
24
- - name : ccache cache files
25
-
26
- with :
27
- path : .ccache
28
- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
29
- - name : Build
30
- run : |
31
- ccache -z
32
- ccache cargo build --verbose ${{ matrix.features }}
33
- ccache cargo test --verbose ${{ matrix.features }}
34
- ccache -s
35
- linux :
36
- runs-on : ubuntu-latest
37
- strategy :
38
- fail-fast : false
39
- matrix :
40
- features : ["--features debugmozjs", ""]
41
- steps :
42
- - uses : actions/checkout@v2
43
- - name : Install deps
44
- run : |
45
- sudo apt install autoconf2.13 ccache llvm -y
46
- - uses : dtolnay/rust-toolchain@stable
47
- - name : ccache cache files
48
-
49
- with :
50
- path : .ccache
51
- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
52
- - name : Build
53
- run : |
54
- ccache -z
55
- ccache cargo build --verbose ${{ matrix.features }}
56
- ccache cargo test --verbose ${{ matrix.features }}
57
- ccache -s
58
13
windows :
59
14
runs-on : windows-latest
60
15
strategy :
61
16
fail-fast : false
62
17
matrix :
63
18
features : ["--features debugmozjs", ""]
64
- # target: [""]
65
- target : ["", "aarch64-uwp-windows-msvc", "x86_64-uwp-windows-msvc"]
19
+ target : [""]
66
20
steps :
67
21
- uses : actions/checkout@v2
68
22
- name : Install deps
74
28
scoop install [email protected] --global
75
29
echo "C:\ProgramData\scoop\shims;C:\Users\runneradmin\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
76
30
- uses : dtolnay/rust-toolchain@stable
77
- - name : Build uwp
78
- if : contains(matrix.target, 'uwp')
79
- shell : cmd
80
- env :
81
- MOZTOOLS_PATH : ' C:\mozilla-build\msys\bin;C:\mozilla-build\bin'
82
- AUTOCONF : " C:/mozilla-build/msys/local/bin/autoconf-2.13"
83
- LINKER : " lld-link.exe"
84
- CC : " clang-cl.exe"
85
- CXX : " clang-cl.exe"
86
- NATIVE_WIN32_PYTHON : " C:\\ mozilla-build\\ python2\\ python.exe"
87
- PYTHON3 : " C:\\ mozilla-build\\ python3\\ python3.exe"
88
- LIBCLANG_PATH : " C:\\ ProgramData\\ scoop\\ apps\\ llvm\\ current\\ lib"
89
- run : |
90
- rustup install nightly-2022-11-20
91
- rustup default nightly-2022-11-20
92
- rustup component add rust-src
93
- rustc --version --verbose
94
- cargo build --verbose ${{ matrix.features }} -Z build-std=std,panic_abort --target ${{ matrix.target }}
95
31
- name : Build Windows
96
32
if : contains(matrix.target, 'uwp') != true
97
33
shell : cmd
@@ -107,31 +43,12 @@ jobs:
107
43
run : |
108
44
rustup install nightly-2022-11-20
109
45
rustup default nightly-2022-11-20
110
- cargo test --verbose ${{ matrix.features }} --lib
111
- Integrity :
112
- runs-on : ubuntu-latest
113
- steps :
114
- - uses : actions/checkout@v2
115
- - name : Get mozjs
116
- run : |
117
- bash ./mozjs/etc/get_mozjs.sh
118
- - name : Apply patch
119
- run : |
120
- python3 ./mozjs/etc/update.py --no-commit mozjs.tar.xz
121
- # Run `git add` here to force CRLF converted into LF
122
- # so that we can check diff properly in next run
123
- git add --all mozjs
124
- - name : Check patch integrity
125
- working-directory : ./mozjs
126
- # Because we've added files in previous run, we need to
127
- # check diff with `--staged`.
128
- run : |
129
- git diff --staged --no-ext-diff --quiet --exit-code
46
+ cargo test --verbose ${{ matrix.features }} --release --lib
130
47
build_result :
131
48
name : homu build finished
132
49
runs-on : ubuntu-latest
133
50
# Integrity check is broken for the time being; don't require it.
134
- needs : ["mac", "linux", " windows"]
51
+ needs : ["windows"]
135
52
steps :
136
53
- name : Mark the job as successful
137
54
run : exit 0
0 commit comments