44 push :
55 branches : [master]
66 pull_request :
7+ workflow_dispatch :
78 merge_group :
89 types : [checks_requested]
910
@@ -25,17 +26,17 @@ jobs:
2526 SCCACHE_GHA_ENABLED : " true"
2627 SCCACHE_VERSION : " v0.4.0"
2728 steps :
28- - uses : actions/checkout@v3
29- - name : Install deps
30- run :
brew install python [email protected] llvm yasm 31- - name : Run sccache-cache
32- uses :
mozilla-actions/[email protected] 33- with :
34- version : ${{ env.SCCACHE_VERSION }}
35- - name : Build
36- run : |
37- cargo build --verbose ${{ matrix.features }}
38- cargo test --verbose ${{ matrix.features }}
29+ - uses : actions/checkout@v3
30+ - name : Install deps
31+ run :
brew install python [email protected] llvm yasm 32+ - name : Run sccache-cache
33+ uses :
mozilla-actions/[email protected] 34+ with :
35+ version : ${{ env.SCCACHE_VERSION }}
36+ - name : Build
37+ run : |
38+ cargo build --verbose ${{ matrix.features }}
39+ cargo test --verbose ${{ matrix.features }}
3940 linux :
4041 env :
4142 RUSTC_WRAPPER : " sccache"
@@ -48,19 +49,19 @@ jobs:
4849 matrix :
4950 features : ["--features debugmozjs", ""]
5051 steps :
51- - uses : actions/checkout@v3
52- - uses : dtolnay/rust-toolchain@stable
53- - name : Install deps
54- run : |
55- sudo apt install autoconf2.13 llvm -y
56- - name : Run sccache-cache
57- uses :
mozilla-actions/[email protected] 58- with :
59- version : ${{ env.SCCACHE_VERSION }}
60- - name : Build
61- run : |
62- cargo build --verbose ${{ matrix.features }}
63- cargo test --verbose ${{ matrix.features }}
52+ - uses : actions/checkout@v3
53+ - uses : dtolnay/rust-toolchain@stable
54+ - name : Install deps
55+ run : |
56+ sudo apt install autoconf2.13 llvm -y
57+ - name : Run sccache-cache
58+ uses :
mozilla-actions/[email protected] 59+ with :
60+ version : ${{ env.SCCACHE_VERSION }}
61+ - name : Build
62+ run : |
63+ cargo build --verbose ${{ matrix.features }}
64+ cargo test --verbose ${{ matrix.features }}
6465 windows :
6566 runs-on : windows-2019
6667 strategy :
@@ -70,57 +71,57 @@ jobs:
7071 # target: [""]
7172 target : ["", "aarch64-uwp-windows-msvc", "x86_64-uwp-windows-msvc"]
7273 env :
73- LINKER : " lld-link.exe"
74- CC : " clang-cl"
75- CXX : " clang-cl"
76- MOZTOOLS_PATH : " ${{ github.workspace }}\\ target\\ dependencies\\ moztools-3.2"
74+ LINKER : " lld-link.exe"
75+ CC : " clang-cl"
76+ CXX : " clang-cl"
77+ MOZTOOLS_PATH : " ${{ github.workspace }}\\ target\\ dependencies\\ moztools-3.2"
7778 steps :
78- - uses : actions/checkout@v3
79- - uses : dtolnay/rust-toolchain@stable
80- if : (!contains(matrix.target, 'uwp'))
81- - uses : dtolnay/rust-toolchain@master
82- if : contains(matrix.target, 'uwp')
83- with :
84- toolchain : " nightly-2023-02-02"
85- components : rust-src
86- - name : Install deps
87- run : |
88- curl -SL "https://github.com/servo/servo-build-deps/releases/download/msvc-deps/moztools-3.2.zip" --create-dirs -o target/dependencies/moztools.zip
89- cd target/dependencies && unzip -qo moztools.zip -d .
90- - name : Run sccache-cache
91- uses :
mozilla-actions/[email protected] 92- with :
93- version : ${{ env.SCCACHE_VERSION }}
94- - name : Build uwp
95- if : contains(matrix.target, 'uwp')
96- shell : cmd
97- run : |
98- rustc --version --verbose
99- cargo build --verbose ${{ matrix.features }} -Z build-std=std,panic_abort --target ${{ matrix.target }}
100- - name : Build Windows
101- if : contains(matrix.target, 'uwp') != true
102- shell : cmd
103- run : |
104- cargo test --verbose ${{ matrix.features }}
79+ - uses : actions/checkout@v3
80+ - uses : dtolnay/rust-toolchain@stable
81+ if : (!contains(matrix.target, 'uwp'))
82+ - uses : dtolnay/rust-toolchain@master
83+ if : contains(matrix.target, 'uwp')
84+ with :
85+ toolchain : " nightly-2023-02-02"
86+ components : rust-src
87+ - name : Install deps
88+ run : |
89+ curl -SL "https://github.com/servo/servo-build-deps/releases/download/msvc-deps/moztools-3.2.zip" --create-dirs -o target/dependencies/moztools.zip
90+ cd target/dependencies && unzip -qo moztools.zip -d .
91+ - name : Run sccache-cache
92+ uses :
mozilla-actions/[email protected] 93+ with :
94+ version : ${{ env.SCCACHE_VERSION }}
95+ - name : Build uwp
96+ if : contains(matrix.target, 'uwp')
97+ shell : cmd
98+ run : |
99+ rustc --version --verbose
100+ cargo build --verbose ${{ matrix.features }} -Z build-std=std,panic_abort --target ${{ matrix.target }}
101+ - name : Build Windows
102+ if : contains(matrix.target, 'uwp') != true
103+ shell : cmd
104+ run : |
105+ cargo test --verbose ${{ matrix.features }}
105106
106107 android :
107108 runs-on : ubuntu-latest
108109 steps :
109- - uses : actions/checkout@v3
110- - name : Install NDK
111- uses : nttld/setup-ndk@v1
112- id : setup-ndk
113- with :
114- ndk-version : r21d
115- - name : Install Rust
116- uses : dtolnay/rust-toolchain@stable
117- with :
118- targets : armv7-linux-androideabi
119- - name : Build
120- env :
121- ANDROID_NDK_HOME : ${{ steps.setup-ndk.outputs.ndk-path }}
122- run : |
123- ./android-build cargo build --target="armv7-linux-androideabi"
110+ - uses : actions/checkout@v3
111+ - name : Install NDK
112+ uses : nttld/setup-ndk@v1
113+ id : setup-ndk
114+ with :
115+ ndk-version : r21d
116+ - name : Install Rust
117+ uses : dtolnay/rust-toolchain@stable
118+ with :
119+ targets : armv7-linux-androideabi
120+ - name : Build
121+ env :
122+ ANDROID_NDK_HOME : ${{ steps.setup-ndk.outputs.ndk-path }}
123+ run : |
124+ ./android-build cargo build --target="armv7-linux-androideabi"
124125
125126 # The integrity check is currently broken. See issue #345.
126127 #
0 commit comments