aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvsyukov Denis Anatolyevich <[email protected]>2020-03-11 10:13:44 +0300
committerEvsyukov Denis Anatolyevich <[email protected]>2020-03-11 10:13:44 +0300
commitabe32d8c7d7a19d1531f8eca087780fcbf4d92ca (patch)
tree1d6afbf91d9144d31c183c8277b9db8988c59ae2
parent[-] upx (diff)
downloadt-abe32d8c7d7a19d1531f8eca087780fcbf4d92ca.tar.xz
t-abe32d8c7d7a19d1531f8eca087780fcbf4d92ca.zip
[+] build
-rw-r--r--.github/workflows/build.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..75812b9
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,34 @@
+name: Build
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ build:
+ name: Publish for ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ include:
+ - os: ubuntu-latest
+ artifact_name: t
+ asset_name: t-linux-amd64
+ - os: windows-latest
+ artifact_name: t.exe
+ asset_name: t-windows-amd64
+ - os: macos-latest
+ artifact_name: t
+ asset_name: t-macos-amd64
+ steps:
+ - uses: hecrj/setup-rust-action@v1
+ with:
+ rust-version: stable
+ - uses: actions/checkout@v2
+ - name: Build
+ run: cargo build --release
+ - name: UPX binary
+ uses: docker://gact/upx:latest
+ with:
+ file: target/release/${{ matrix.artifact_name }}
+ upx_args: '-9'