From c9e05ec6e27e8070d053b43aa3cec735ad073e02 Mon Sep 17 00:00:00 2001 From: AB Date: Wed, 16 Dec 2020 18:24:23 +0300 Subject: [PATCH] Update workflow --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ .github/workflows/rust.yml | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b11dfb7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Rust + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build-windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - name: Build + run: cargo build --verbose + + build-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build + run: cargo build --verbose \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7fba4bd..0187d98 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,4 @@ -name: Rust +name: Build and publish on: push: