From 86c595abda91ff3791851219c824dc8229125138 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Sat, 3 Sep 2022 18:46:13 -0700 Subject: [PATCH] ubuntu build --- .github/workflows/build.yml | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f20b218..ff123ce 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ concurrency: cancel-in-progress: true jobs: - build: + build-win: runs-on: windows-latest steps: - name: Checkout @@ -47,3 +47,36 @@ jobs: uses: actions/upload-artifact@v3 with: name: Cultivation + path: Cultivation.zip + + build-ubuntu: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: setup node + uses: actions/setup-node@v1 + with: + node-version: 16 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: Install deps and build + run: yarn && yarn build --debug + + - name: Compress build + uses: vimtor/action-zip@v1 + with: + files: src-tauri/target/debug/cultivation src-tauri/target/debug/lang/ src-tauri/target/debug/keys/ + recursive: true + dest: Cultivation.zip + + - name: Upload build + uses: actions/upload-artifact@v3 + with: + name: Cultivation + path: Cultivation.zip