Skip to content

Commit 35bc294

Browse files
committed
Use crates.io for CI builds
1 parent 55f7a5d commit 35bc294

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/build-release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ jobs:
4242

4343
- uses: dtolnay/rust-toolchain@stable
4444

45+
- name: Use crates.io in CI
46+
run: |
47+
mkdir -p .cargo
48+
cat > .cargo/config.toml <<'EOF'
49+
[registries.crates-io]
50+
protocol = "sparse"
51+
52+
[net]
53+
git-fetch-with-cli = true
54+
EOF
55+
4556
- name: Install Linux dependencies
4657
if: runner.os == 'Linux'
4758
run: |
@@ -61,7 +72,7 @@ jobs:
6172
run: cargo install cargo-packager --locked
6273

6374
- name: Build binary
64-
run: cargo build --release --bin linuxdo-accelerator
75+
run: cargo build --release --locked --bin linuxdo-accelerator
6576

6677
- name: Package app
6778
run: ${{ matrix.package_cmd }}

0 commit comments

Comments
 (0)