more tests

This commit is contained in:
Nikita Galaiko 2023-08-03 14:14:14 +02:00
parent 9b7c3eea7f
commit 0b1809cb5d

View File

@ -27,7 +27,8 @@ on:
jobs: jobs:
publish-tauri: publish-tauri:
strategy: strategy:
fail-fast: false # todo: make false
fail-fast: true
matrix: matrix:
platform: platform:
- macos-latest - macos-latest
@ -59,7 +60,7 @@ jobs:
- uses: actions/cache@v3 - uses: actions/cache@v3
# do not cache pnpm on our runners (internet in berlin is very slow) # do not cache pnpm on our runners (internet in berlin is very slow)
if: matrix.platform != 'macos-aarch64' if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'ubuntu-20.04'
name: Setup pnpm cache name: Setup pnpm cache
with: with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
@ -78,7 +79,7 @@ jobs:
- name: Cache rust dependencies - name: Cache rust dependencies
# do not cache rust on our runners (internet in berlin is very slow) # do not cache rust on our runners (internet in berlin is very slow)
if: matrix.platform != 'macos-aarch64' if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'ubuntu-20.04'
uses: Swatinem/rust-cache@v2 uses: Swatinem/rust-cache@v2
with: with:
workspaces: src-tauri workspaces: src-tauri
@ -101,18 +102,20 @@ jobs:
NEXT_VERSION=$(./scripts/next.sh "${CURRENT_VERSION}" "${{ env.bump }}") NEXT_VERSION=$(./scripts/next.sh "${CURRENT_VERSION}" "${{ env.bump }}")
echo "version=$NEXT_VERSION" >> $GITHUB_ENV echo "version=$NEXT_VERSION" >> $GITHUB_ENV
- run: env - run: ls /usr/lib/pkgconfig
- run: ls /usr/share/pkgconfig
- run: ls /usr/local/pkgconfig
- run: find / -name pkgconfig -exec ls {} \;
# github's linux runner has homebrew installed which messes up with pkg-config.
- name: uninstall homebrew - name: uninstall homebrew
run: NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)" run: NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
# github's linux runner has homebrew installed which messes up with pkg-config.
if: runner.os == 'Linux' && runner.arch == 'X64' if: runner.os == 'Linux' && runner.arch == 'X64'
- run: sudo apt-get update - name: install ubuntu dependencies
run: |
sudo apt-get update
sudo apt-get install libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
# self hosted Linux ARM64 runner has this baked in # self hosted Linux ARM64 runner has this baked in
if: runner.os == 'Linux' && runner.arch != 'ARM64' if: runner.os == 'Linux' && runner.arch != 'ARM64'
- name: Install system dependencies
# self hosted Linux ARM64 runner has this baked in
run: sudo apt-get install libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
if: runner.os == 'Linux' && runner.arch != 'ARM64'
- name: import gpg key - name: import gpg key
if: runner.os == 'Linux' if: runner.os == 'Linux'
uses: crazy-max/ghaction-import-gpg@v5 uses: crazy-max/ghaction-import-gpg@v5