From 7db0d66ad4d3d83d287d25765b653ddcc0b8c8d4 Mon Sep 17 00:00:00 2001 From: Dennis Ranke Date: Wed, 22 Dec 2021 21:30:51 +0100 Subject: [PATCH] first attempt at ci setup to build uw8 binaries --- .github/workflows/ci.yml | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fb6472d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,47 @@ +name: Rust + +on: + push: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + strategy: + matrix: + build: [ linux, windows, macos ] + include: + - build: linux + os: ubuntu-latest + exe: uw8 + - build: windows + os: windows-latest + exe: uw8.exe + - build: macos + os: macos-latest + exe: uw8 + + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Cache build dirs + uses: actions/cache@v2 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Build + run: cargo build --verbose + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + name: uw8-${{ matrix.build }} + path: target/release/${{ matrix.exe }}