-
Notifications
You must be signed in to change notification settings - Fork 15
37 lines (33 loc) · 993 Bytes
/
rust.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
name: Rust
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js for use with actions
uses: actions/setup-node@v3
- name: install js test libs from npm
run: npm install
- name: Build
run: cargo build
- name: curl moz_central
run: curl https://hg.mozilla.org/mozilla-central/archive/tip.zip/js/src/jit-test/tests/ --output moz-central.zip
- name: unzip moz-central
run: unzip -qq moz-central.zip -d moz-central
- name: Run tests
run: cargo test --release --features=moz_central
env:
RUST_MIN_STACK: 9999999
- name: Cache node_modules
uses: actions/cache@v3
with:
path: ./node_modules
key: ${{ runner.os }}.node_modules
- name: before cargo cache
run: rm -rf ~/.cargo/registry
- name: Cache cargo directory
uses: actions/cache@v3
with:
key: ${{ runner.os }}.cargo
path: ~/.cargo