Skip to content

Commit ffe2c8b

Browse files
committed
ci: modify rust build command and upgrade golangci-lint
1 parent 9682b9c commit ffe2c8b

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.github/workflows/build_static_lib.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,25 @@ jobs:
1212
include:
1313
- build: linux-x86_64
1414
os: ubuntu-latest
15-
rust: stable
1615
- build: macos-x86_64
1716
os: macos-latest
18-
rust: stable
1917
- build: windows-x86_64
2018
os: windows-latest
2119
target: x86_64-pc-windows-gnu
22-
rust: stable
2320
steps:
2421
- uses: actions/checkout@v2
2522
with:
2623
repository: "cloudflare/lol-html"
27-
- uses: bytecodealliance/wasmtime/.github/actions/install-rust@main
28-
with:
29-
toolchain: ${{ matrix.rust }}
3024

3125
- name: Configure Cargo target
3226
run: |
3327
echo CARGO_BUILD_TARGET=${{ matrix.target }} >> $GITHUB_ENV
3428
rustup target add ${{ matrix.target }}
3529
if: matrix.target != ''
3630

37-
- run: cargo build --release --manifest-path c-api/Cargo.toml
31+
- run: cargo build --lib --release --manifest-path c-api/Cargo.toml
3832
if: matrix.os != 'windows-latest'
39-
- run: cargo build --release --target ${{ matrix.target }} --manifest-path c-api/Cargo.toml
33+
- run: cargo build --lib --release --target ${{ matrix.target }} --manifest-path c-api/Cargo.toml
4034
if: matrix.os == 'windows-latest'
4135

4236
- run: mkdir dist

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
- name: golangci-lint
1616
uses: golangci/golangci-lint-action@v2
1717
with:
18-
version: v1.31
18+
version: v1.32

0 commit comments

Comments
 (0)