From e034ad6b5a86fee6bb2b522dc293a35a011ea68e Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Tue, 16 May 2023 22:45:11 +0200 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c25d791 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 + + + +