Skip to content

Commit

Permalink
test: build macos artifacts on self-hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Nov 20, 2023
1 parent a2bcf10 commit c792fe9
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions .github/workflows/desktop-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,36 +152,40 @@ jobs:

build-macos:
if: ${{ !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' }}
runs-on: macos-latest
runs-on: [self-hosted, desktop-test, macOS] # app-test-macos-arm

Check warning on line 155 in .github/workflows/desktop-e2e.yml

View workflow job for this annotation

GitHub Actions / check-formatting

155:49 [comments] too few spaces before comment
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --depth=1
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.5
- name: Install Protoc
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
node-version: 18
- name: Install Rust
uses: actions-rs/[email protected]

- name: Read volta info
id: volta
uses: zoexx/github-action-json-file-properties@release
with:
toolchain: stable
target: aarch64-apple-darwin
default: true
- name: Install Go
uses: actions/setup-go@v3
file_path: 'gui/package.json'
prop_path: 'volta'
- name: Setup node
uses: actions/setup-node@v3
with:
go-version: 1.18.5
token: ${{ secrets.GITHUB_TOKEN }}
node-version: ${{ steps.volta.outputs.node }}
cache: 'npm'
cache-dependency-path: gui/package-lock.json
- name: Update NPM
run: npm i -g npm@${{ steps.volta.outputs.npm }}
- name: Build app
run: ./build.sh --universal
run: ./build.sh
- name: Build test executable
run: ./gui/scripts/build-test-executable.sh aarch64-apple-darwin
# FIXME: This fails for some reason, but the artifact is built
continue-on-error: true
run: ./gui/scripts/build-test-executable.sh
- uses: actions/upload-artifact@v3
if: '!cancelled()'
with:
Expand Down

0 comments on commit c792fe9

Please sign in to comment.