From a87e069576d7ce04dd634d194cc0a33c30060b62 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Tue, 16 May 2023 23:33:17 +0200 Subject: [PATCH] update workflow/cargo config --- .cargo/config.toml | 6 ++++++ .github/workflows/build.yml | 17 +++++------------ 2 files changed, 11 insertions(+), 12 deletions(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..bd87de2 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,6 @@ +[target.'cfg(target_arch = "x86_64")'] +rustflags = "-C target-feature=+sse,+sse2,+sse3,+avx,+avx2,+fma" + +[registries.crates-io] +protocol = "sparse" + diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c25d791..de39eeb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,30 +8,23 @@ on: 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 + run: cargo build + --release + --bin kubi + --bin kubi-server - uses: actions/upload-artifact@v3 with: - name: release-linux + name: linux-x64-release path: | ./target/release/kubi ./target/release/kubi-server ./assets - - - -