From 00a3457bb70b048fa50cfb998a88cd8321d08316 Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Fri, 15 Apr 2022 21:47:14 -0400 Subject: [PATCH] actions: add build action --- .github/workflows/build.yaml | 47 ++++++++++++++++++++++++++++++++++++ .github/workflows/lint.yaml | 4 +-- 2 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..4b019e4 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,47 @@ +name: Build + +on: + push: + branches: + - main + tags: + - v* + pull_request: + branches: + - main + +jobs: + tauri: + strategy: + fail-fast: false + matrix: + platform: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.platform }} + + steps: + - uses: actions/checkout@v2 + + - name: setup node + uses: actions/setup-node@v1 + with: + node-version: 16 + + - name: install Rust stable + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: install dependencies (ubuntu only) + if: matrix.platform == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf + + - name: install app dependencies and build it + run: | + npm ci + npm run build + + - uses: tauri-apps/tauri-action@v0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index e4bece7..9a61999 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -3,10 +3,10 @@ name: Linter on: push: branches: - - master + - main pull_request: branches: - - master + - main jobs: tauri: