Skip to content

Commit

Permalink
chore: polop
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilb committed Sep 23, 2024
1 parent 0ef9a0e commit bbac407
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
41 changes: 40 additions & 1 deletion .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,55 @@ jobs:
- name: Setup & Build
uses: ./actions/setup_and_build

- name: Cache built files
id: cache-built-files
uses: actions/cache/save@v4
with:
path: ./
key: root-${{ runner.os }}-${{ runner.arch }}-${{ github.sha }}

lint_test:
needs: build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# We want a mac arm64 build, and according to this https://github.com/actions/runner-images#available-images macos-14 is always arm64
# macos-14 is disabled for now as we hit our free tier limit for macos builds
os: [windows-2022, ubuntu-20.04, macos-12]
steps:
- name: Restore built files
id: cache-built-files
uses: actions/cache/restore@v4
with:
path: ./
key: root-${{ runner.os }}-${{ runner.arch }}-${{ github.sha }}
- name: Lint Files
# no need to lint files on all platforms. Just do it once on the quicker one
if: runner.os == 'Linux'
run: yarn lint-full

- name: Enforce yarn.lock has no duplicates
uses: ./actions/deduplicate_fail
- name: Unit Test
run: yarn test

build_binaries:
needs: lint_test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# We want a mac arm64 build, and according to this https://github.com/actions/runner-images#available-images macos-14 is always arm64
# macos-14 is disabled for now as we hit our free tier limit for macos builds
os: [windows-2022, ubuntu-20.04, macos-12]
steps:
- name: Restore built files
id: cache-built-files
uses: actions/cache/restore@v4
with:
path: ./
key: root-${{ runner.os }}-${{ runner.arch }}-${{ github.sha }}

- name: Build but do not publish
# we want this to run always, except on "push" to "master"
if: github.event_name != 'push' || github.ref != 'master'
Expand Down
1 change: 0 additions & 1 deletion actions/setup_and_build/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: 'Setup and build'
description: 'Setup and build Session Desktop'
runs:
Expand Down

0 comments on commit bbac407

Please sign in to comment.