From 8906122b0b49ed474a8bfe7d1de52b11574a4fb2 Mon Sep 17 00:00:00 2001 From: Kitsu Date: Thu, 3 Dec 2020 22:31:32 +0300 Subject: [PATCH 1/2] ci: bin publishing --- .github/workflows/publish.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..67abffe --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: Publish + +on: + push: + tags: + - '*' + +jobs: + bin-build: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-16.04, ubuntu-18.04, ubuntu-20.04] + + steps: + - uses: actions/checkout@v2 + - name: Build + run: cargo build --release + - name: Upload binary + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: target/release/yofi + asset_name: yofi-${{ matrix.os }} + tag: ${{ github.ref }} From 0024f6fa47bcdd0f7fe7f5d00de106415f6d90ec Mon Sep 17 00:00:00 2001 From: Kitsu Date: Thu, 3 Dec 2020 22:53:48 +0300 Subject: [PATCH 2/2] Enable lto for release builds --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 8ddede0..b94d59d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,3 +20,6 @@ nix = "0.19.1" log = "0.4.11" fern = "0.6.0" chrono = "0.4.19" + +[profile.release] +lto = true