From 253764697a7b5aa6737b4d08ee447c999d47a2c0 Mon Sep 17 00:00:00 2001 From: Jai A Date: Thu, 30 Mar 2023 14:17:32 -0700 Subject: [PATCH] fix actions + add tauri action --- .github/workflows/cli-build.yml | 4 ++-- .github/workflows/lib-build.yml | 4 ++-- .github/workflows/tauri-build.yml | 34 +++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/tauri-build.yml diff --git a/.github/workflows/cli-build.yml b/.github/workflows/cli-build.yml index 4c2176c8..4d43beeb 100644 --- a/.github/workflows/cli-build.yml +++ b/.github/workflows/cli-build.yml @@ -8,14 +8,14 @@ env: CARGO_TERM_COLOR: always jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 defaults: run: working-directory: ./theseus_cli steps: - uses: actions/checkout@v2 - name: install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-latest' + if: matrix.platform == 'ubuntu-20.04' run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf diff --git a/.github/workflows/lib-build.yml b/.github/workflows/lib-build.yml index 16723f50..3c704c14 100644 --- a/.github/workflows/lib-build.yml +++ b/.github/workflows/lib-build.yml @@ -8,14 +8,14 @@ env: CARGO_TERM_COLOR: always jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 defaults: run: working-directory: ./theseus steps: - uses: actions/checkout@v2 - name: install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-latest' + if: matrix.platform == 'ubuntu-20.04' run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf diff --git a/.github/workflows/tauri-build.yml b/.github/workflows/tauri-build.yml new file mode 100644 index 00000000..eb97cf36 --- /dev/null +++ b/.github/workflows/tauri-build.yml @@ -0,0 +1,34 @@ +name: 'Tauri GUI Build' +on: + push: + branches: [ master ] + pull_request: +jobs: + test-tauri: + strategy: + fail-fast: false + matrix: + platform: [macos-latest, ubuntu-20.04, windows-latest] + + runs-on: ${{ matrix.platform }} + defaults: + run: + working-directory: ./theseus_gui + steps: + - uses: actions/checkout@v3 + - name: setup node + uses: actions/setup-node@v3 + with: + node-version: 16 + - name: install Rust stable + uses: dtolnay/rust-toolchain@stable + - name: install dependencies (ubuntu only) + if: matrix.platform == 'ubuntu-20.04' + run: | + sudo apt-get update + sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf + - name: install frontend dependencies + run: yarn install + - uses: tauri-apps/tauri-action@v0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file