build binary in ci

This commit is contained in:
Robin Appelman 2020-11-30 19:52:37 +01:00
commit 547476f8d4

View file

@ -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