mirror of
https://github.com/ilyakooo0/reshape.git
synced 2024-11-22 17:26:33 +03:00
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.
This commit is contained in:
parent
7e64cc488d
commit
eeb20f6ce0
7
.github/workflows/release.yaml
vendored
7
.github/workflows/release.yaml
vendored
@ -20,7 +20,12 @@ jobs:
|
|||||||
- name: Use cache for Rust dependencies
|
- name: Use cache for Rust dependencies
|
||||||
uses: Swatinem/rust-cache@v1
|
uses: Swatinem/rust-cache@v1
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --release && mv target/release/reshape ./reshape-linux_amd64
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
args: --release
|
||||||
|
- name: Rename binary
|
||||||
|
run: mv target/release/reshape ./reshape-linux_amd64
|
||||||
- name: Save binary to release
|
- name: Save binary to release
|
||||||
uses: skx/github-action-publish-binaries@master
|
uses: skx/github-action-publish-binaries@master
|
||||||
env:
|
env:
|
||||||
|
5
.github/workflows/test.yaml
vendored
5
.github/workflows/test.yaml
vendored
@ -37,6 +37,9 @@ jobs:
|
|||||||
- name: Use cache for Rust dependencies
|
- name: Use cache for Rust dependencies
|
||||||
uses: Swatinem/rust-cache@v1
|
uses: Swatinem/rust-cache@v1
|
||||||
- name: Run integration tests
|
- name: Run integration tests
|
||||||
run: cargo test -- --test-threads=1
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: test
|
||||||
|
args: -- --test-threads=1
|
||||||
env:
|
env:
|
||||||
POSTGRES_CONNECTION_STRING: "postgres://postgres:postgres@127.0.0.1/migra_test"
|
POSTGRES_CONNECTION_STRING: "postgres://postgres:postgres@127.0.0.1/migra_test"
|
Loading…
Reference in New Issue
Block a user