5656 ~/.cargo/registry
5757 ./target
5858 key : test-cargo-registry
59- - name : Run tests (hidraw backend)
59+ - name : Run tests
6060 run : cargo test --workspace --lib --bins --verbose
61- - name : Run tests (nusb backend)
62- run : cargo test --workspace --lib --bins --features nusb --verbose
6361
6462 wasm :
6563 runs-on : ubuntu-latest
@@ -84,31 +82,19 @@ jobs:
8482 fail-fast : false
8583 matrix :
8684 include :
87- # Two Linux variants: the default hidraw backend and the nusb backend .
85+ # Linux always uses hidra's nusb backend (auto-selected in Cargo.toml) .
8886 - TARGET : x86_64-unknown-linux-gnu
8987 OS : ubuntu-latest
90- FEATURES : " "
91- LABEL : hidraw
92- - TARGET : x86_64-unknown-linux-gnu
93- OS : ubuntu-latest
94- FEATURES : " nusb"
95- LABEL : nusb
9688 - TARGET : x86_64-apple-darwin
9789 OS : macos-latest
98- FEATURES : " "
99- LABEL : " "
10090 - TARGET : x86_64-pc-windows-msvc
10191 OS : windows-latest
102- FEATURES : " "
103- LABEL : " "
10492 needs : test
10593 runs-on : ${{ matrix.OS }}
10694 env :
10795 NAME : sinowisp
10896 TARGET : ${{ matrix.TARGET }}
10997 OS : ${{ matrix.OS }}
110- FEATURES : ${{ matrix.FEATURES }}
111- LABEL : ${{ matrix.LABEL }}
11298 steps :
11399 - uses : actions/checkout@v6
114100 - name : Cargo cache
@@ -117,11 +103,11 @@ jobs:
117103 path : |
118104 ~/.cargo/registry
119105 ./target
120- key : build-cargo-registry-${{matrix.TARGET}}-${{matrix.LABEL}}
106+ key : build-cargo-registry-${{matrix.TARGET}}
121107 - name : Install rust target
122108 run : rustup target add $TARGET
123109 - name : Run build
124- run : cargo build --release --verbose --target $TARGET ${FEATURES:+--features "$FEATURES"}
110+ run : cargo build --release --verbose --target $TARGET
125111 - name : Compress
126112 run : |
127113 mkdir -p ./artifacts
@@ -136,14 +122,13 @@ jobs:
136122 else
137123 TAG=$GITHUB_SHA
138124 fi
139- # include the backend label in the artifact name when set (Linux)
140- ARTIFACT=$NAME-$TARGET${LABEL:+-$LABEL}-$TAG
125+ ARTIFACT=$NAME-$TARGET-$TAG
141126 mv ./target/$TARGET/release/$EXEC ./$EXEC
142127 tar -czf ./artifacts/$ARTIFACT.tar.gz $EXEC
143128 - name : Archive artifact
144129 uses : actions/upload-artifact@v7
145130 with :
146- name : result-${{ matrix.TARGET }}${{ matrix.LABEL && format('-{0}', matrix.LABEL) || '' }}
131+ name : result-${{ matrix.TARGET }}
147132 path : |
148133 ./artifacts
149134
0 commit comments