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