~repos /rust-embed
git clone https://pyrossh.dev/repos/rust-embed.git
rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.
3115af1f
—
pyros2097 5 years ago
handle nightly failures and move release builds to the bottom
.github/workflows/test.yml
CHANGED
|
@@ -3,10 +3,12 @@ on: [push]
|
|
|
3
3
|
jobs:
|
|
4
4
|
test:
|
|
5
5
|
runs-on: ${{ matrix.os }}
|
|
6
|
+
continue-on-error: ${{ matrix.experimental }}
|
|
6
7
|
strategy:
|
|
7
8
|
matrix:
|
|
8
9
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
9
10
|
rust: [stable, nightly]
|
|
11
|
+
experimental: [false, true]
|
|
10
12
|
steps:
|
|
11
13
|
- uses: hecrj/setup-rust-action@v1
|
|
12
14
|
with:
|
|
@@ -14,15 +16,16 @@ jobs:
|
|
|
14
16
|
- uses: actions/checkout@master
|
|
15
17
|
- name: Run tests
|
|
16
18
|
run: |
|
|
19
|
+
cargo fmt --all -- --check
|
|
17
20
|
cargo test --test lib
|
|
18
21
|
cargo test --test lib --features "debug-embed"
|
|
19
|
-
cargo test --test lib --release
|
|
20
22
|
cargo test --test lib --features "compression" --release
|
|
21
23
|
cargo test --test interpolated_path --features "interpolate-folder-path"
|
|
22
24
|
cargo test --test interpolated_path --features "interpolate-folder-path" --release
|
|
23
25
|
cargo build --example basic
|
|
24
|
-
cargo build --example basic --release
|
|
25
26
|
cargo build --example actix --features actix
|
|
26
|
-
cargo build --example actix --features actix --release
|
|
27
27
|
cargo build --example warp --features warp-ex
|
|
28
|
+
cargo test --test lib --release
|
|
29
|
+
cargo build --example basic --release
|
|
30
|
+
cargo build --example actix --features actix --release
|
|
28
31
|
cargo build --example warp --features warp-ex --release
|