on main help sign in
Use prebuilt cargo Github action

This makes no difference right now but will make it easier to add cross-compilation later as the cargo Github action has built-in support for `cross`: https://github.com/actions-rs/cargo.

commiteeb20f6ce0c8b775dc433e8007764aed6f20b88a authorfabianlindfors <fabian@flapplabs.se> dateWed 29 Dec 2021, 00:35 (5 years ago) parent7e64cc4
2 files changed+10−2
.github/workflows/release.yaml+6−1 .github/workflows/test.yaml+4−1
.github/workflows/release.yaml+6−1
@@ -20,7 +20,12 @@ jobs:
2020 - name: Use cache for Rust dependencies
2121 uses: Swatinem/rust-cache@v1
2222 - name: Build
23− run: cargo build --release && mv target/release/reshape ./reshape-linux_amd64
23+ uses: actions-rs/cargo@v1
24+ with:
25+ command: build
26+ args: --release
27+ - name: Rename binary
28+ run: mv target/release/reshape ./reshape-linux_amd64
2429 - name: Save binary to release
2530 uses: skx/github-action-publish-binaries@master
2631 env:
.github/workflows/test.yaml+4−1
@@ -37,6 +37,9 @@ jobs:
3737 - name: Use cache for Rust dependencies
3838 uses: Swatinem/rust-cache@v1
3939 - name: Run integration tests
40− run: cargo test -- --test-threads=1
40+ uses: actions-rs/cargo@v1
41+ with:
42+ command: test
43+ args: -- --test-threads=1
4144 env:
4245 POSTGRES_CONNECTION_STRING: "postgres://postgres:postgres@127.0.0.1/migra_test"