Add github workflow to build

This commit is contained in:
rahuliyer95 2020-03-08 12:21:31 -07:00 committed by Ferran Basora
parent a493fbdd03
commit d00d717f2a

38
.github/workflows/rust.yml vendored Normal file
View File

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