mirror of
https://codeberg.org/demostf/api-test.git
synced 2026-06-03 09:34:10 +02:00
build binary in ci
This commit is contained in:
parent
7a0079da78
commit
547476f8d4
1 changed files with 21 additions and 2 deletions
23
.github/workflows/rust.yml
vendored
23
.github/workflows/rust.yml
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
on: [push, pull_request]
|
on: [ push, pull_request ]
|
||||||
|
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
|
|
@ -60,4 +60,23 @@ jobs:
|
||||||
API_ROOT: http://localhost/
|
API_ROOT: http://localhost/
|
||||||
EDIT_KEY: edit
|
EDIT_KEY: edit
|
||||||
with:
|
with:
|
||||||
command: run
|
command: run
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: Build Binaries
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
target: x86_64-unknown-linux-musl
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
args: --release --target x86_64-unknown-linux-musl
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: api-test
|
||||||
|
path: target/x86_64-unknown-linux-musl/release/api-test
|
||||||
Loading…
Add table
Add a link
Reference in a new issue