From d00d717f2a560287b5242c68d69a65014f68f1eb Mon Sep 17 00:00:00 2001 From: rahuliyer95 Date: Sun, 8 Mar 2020 12:21:31 -0700 Subject: [PATCH] Add github workflow to build --- .github/workflows/rust.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..b7abe08 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,38 @@ +name: Rust + +on: [push] + +jobs: + build-mac: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + + - name: Build + run: cargo bundle --release + + - uses: actions/upload-artifact@v1 + with: + name: thumbs-macos.zip + path: ./target/release/thumbs + + build-linux: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies + run: | + sudo apt-get install -y curl gnupg ca-certificates git gcc-multilib g++-multilib cmake libssl-dev pkg-config python + + - name: Build + run: cargo build --release + + - uses: actions/upload-artifact@v1 + with: + name: thumbs-linux.zip + path: ./target/release/thumbs