mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-21 22:38:41 -06:00
Create build.yml
This commit is contained in:
parent
141f3ae0bd
commit
dc9f396908
37
.github/workflows/build.yml
vendored
Normal file
37
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
CARGO_TERM_VERBOSE: true
|
||||
CARGO_TERM_PROGRESS_WHEN: "never"
|
||||
CARGO_PROFILE_RELEASE_LTO: "fat"
|
||||
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 1
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Build
|
||||
run: cargo build --release --package kubi --package kubi-server
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: release-linux
|
||||
path: |
|
||||
./target/release/kubi
|
||||
./target/release/kubi-server
|
||||
./assets
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in a new issue