mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
Add self-hosted runner arch sanity check (#1767)
This commit is contained in:
parent
525c984e8a
commit
9918467a8d
3
.github/workflows/build_and_test.yaml
vendored
3
.github/workflows/build_and_test.yaml
vendored
@ -94,6 +94,9 @@ jobs:
|
|||||||
- name: Install Yarn
|
- name: Install Yarn
|
||||||
if: runner.environment == 'self-hosted'
|
if: runner.environment == 'self-hosted'
|
||||||
run: |
|
run: |
|
||||||
|
# Sanity check that the arch is arm64 as we expect
|
||||||
|
[[ $(uname -p) == "aarch64" ]] || exit 1
|
||||||
|
|
||||||
sudo apt-get -qq update
|
sudo apt-get -qq update
|
||||||
sudo apt-get install -y curl
|
sudo apt-get install -y curl
|
||||||
curl -fsSL --create-dirs -o $HOME/bin/yarn https://github.com/yarnpkg/yarn/releases/download/v1.22.19/yarn-1.22.19.js
|
curl -fsSL --create-dirs -o $HOME/bin/yarn https://github.com/yarnpkg/yarn/releases/download/v1.22.19/yarn-1.22.19.js
|
||||||
|
3
.github/workflows/build_linux.yaml
vendored
3
.github/workflows/build_linux.yaml
vendored
@ -38,6 +38,9 @@ jobs:
|
|||||||
- name: Install missing tools
|
- name: Install missing tools
|
||||||
if: runner.environment == 'self-hosted'
|
if: runner.environment == 'self-hosted'
|
||||||
run: |
|
run: |
|
||||||
|
# Sanity check that the arch is arm64 as we expect
|
||||||
|
[[ $(uname -p) == "aarch64" ]] || exit 1
|
||||||
|
|
||||||
sudo apt-get -qq update
|
sudo apt-get -qq update
|
||||||
# curl for yarn download, git for tj-actions/changed-files, zstd for actions/cache
|
# curl for yarn download, git for tj-actions/changed-files, zstd for actions/cache
|
||||||
sudo apt-get install -y curl git zstd
|
sudo apt-get install -y curl git zstd
|
||||||
|
Loading…
Reference in New Issue
Block a user