mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 15:34:59 +01:00
Pin GHA runner versions (#1938)
This commit is contained in:
parent
4405f5dcf4
commit
7886e4c604
8
.github/workflows/build_and_test.yaml
vendored
8
.github/workflows/build_and_test.yaml
vendored
@ -50,7 +50,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- name: macOS Universal
|
- name: macOS Universal
|
||||||
os: macos-latest
|
os: macos-14
|
||||||
artifact: macos
|
artifact: macos
|
||||||
executable: "/Users/runner/Applications/Element.app/Contents/MacOS/Element"
|
executable: "/Users/runner/Applications/Element.app/Contents/MacOS/Element"
|
||||||
# We need to mount the DMG and copy the app to the Applications folder as a mounted DMG is
|
# We need to mount the DMG and copy the app to the Applications folder as a mounted DMG is
|
||||||
@ -80,11 +80,11 @@ jobs:
|
|||||||
executable: "/opt/Element/element-desktop"
|
executable: "/opt/Element/element-desktop"
|
||||||
prepare_cmd: "sudo apt-get -qq update && sudo apt install -y ./dist/*.deb"
|
prepare_cmd: "sudo apt-get -qq update && sudo apt install -y ./dist/*.deb"
|
||||||
- name: Windows (x86)
|
- name: Windows (x86)
|
||||||
os: windows-latest
|
os: windows-2022
|
||||||
artifact: win-ia32
|
artifact: win-ia32
|
||||||
executable: "./dist/win-ia32-unpacked/Element.exe"
|
executable: "./dist/win-ia32-unpacked/Element.exe"
|
||||||
- name: Windows (x64)
|
- name: Windows (x64)
|
||||||
os: windows-latest
|
os: windows-2022
|
||||||
artifact: win-x64
|
artifact: win-x64
|
||||||
executable: "./dist/win-unpacked/Element.exe"
|
executable: "./dist/win-unpacked/Element.exe"
|
||||||
name: Test ${{ matrix.name }}
|
name: Test ${{ matrix.name }}
|
||||||
@ -132,7 +132,7 @@ jobs:
|
|||||||
RUN_AS: ${{ runner.os == 'Linux' && 'sudo' || '' }}
|
RUN_AS: ${{ runner.os == 'Linux' && 'sudo' || '' }}
|
||||||
|
|
||||||
- name: Workaround macOS GHA permission issues
|
- name: Workaround macOS GHA permission issues
|
||||||
if: matrix.os == 'macos-latest'
|
if: runner.os == 'macOS'
|
||||||
run: |
|
run: |
|
||||||
sqlite3 $HOME/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT OR IGNORE INTO access VALUES ('kTCCServiceMicrophone','/usr/local/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159,NULL,NULL,'UNUSED',1687786159);"
|
sqlite3 $HOME/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT OR IGNORE INTO access VALUES ('kTCCServiceMicrophone','/usr/local/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159,NULL,NULL,'UNUSED',1687786159);"
|
||||||
sqlite3 $HOME/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT OR IGNORE INTO access VALUES ('kTCCServiceMicrophone','/opt/off/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159,NULL,NULL,'UNUSED',1687786159);"
|
sqlite3 $HOME/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT OR IGNORE INTO access VALUES ('kTCCServiceMicrophone','/opt/off/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159,NULL,NULL,'UNUSED',1687786159);"
|
||||||
|
4
.github/workflows/build_windows.yaml
vendored
4
.github/workflows/build_windows.yaml
vendored
@ -2,7 +2,7 @@
|
|||||||
# Due to this extra care must be taken to only ever run all build_* scripts against the same branch to ensure
|
# Due to this extra care must be taken to only ever run all build_* scripts against the same branch to ensure
|
||||||
# the correct cache scoping, and additional care must be taken to not run untrusted actions on the develop branch.
|
# the correct cache scoping, and additional care must be taken to not run untrusted actions on the develop branch.
|
||||||
|
|
||||||
# window-latest by default uses the pwsh shell which breaks codeSigningCert in the workflow
|
# Windows GHA runner by default uses the pwsh shell which breaks codeSigningCert in the workflow
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: powershell
|
shell: powershell
|
||||||
@ -30,7 +30,7 @@ on:
|
|||||||
description: "Whether to sign & notarise the build, requires 'packages.element.io' environment"
|
description: "Whether to sign & notarise the build, requires 'packages.element.io' environment"
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-2022
|
||||||
environment: ${{ inputs.sign && 'packages.element.io' || '' }}
|
environment: ${{ inputs.sign && 'packages.element.io' || '' }}
|
||||||
env:
|
env:
|
||||||
SIGNTOOL_PATH: "C:/Program Files (x86)/Windows Kits/10/bin/10.0.22000.0/x86/signtool.exe"
|
SIGNTOOL_PATH: "C:/Program Files (x86)/Windows Kits/10/bin/10.0.22000.0/x86/signtool.exe"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Requirements to build native modules
|
## Requirements to build native modules
|
||||||
|
|
||||||
We rely on Github Actions `windows-latest` plus a few extra utilities as per [the workflow](https://github.com/vector-im/element-desktop/blob/develop/.github/workflows/build_windows.yaml).
|
We rely on Github Actions `windows-2022` plus a few extra utilities as per [the workflow](https://github.com/vector-im/element-desktop/blob/develop/.github/workflows/build_windows.yaml).
|
||||||
|
|
||||||
If you want to build native modules, make sure that the following tools are installed on your system.
|
If you want to build native modules, make sure that the following tools are installed on your system.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user