mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-06-24 21:25:23 +00:00
Added Cirrus CI configuration for local testing
This commit is contained in:
parent
ec4b75845d
commit
f36160a4c0
3 changed files with 21 additions and 0 deletions
19
.cirrus.yml
Normal file
19
.cirrus.yml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
|
||||||
|
# Todo: Codesign fails for local CI, works when steps replicated in VM GUI
|
||||||
|
# Run command: `cirrus run --artifacts-dir receivers/electron/out`
|
||||||
|
task:
|
||||||
|
name: buildReceiverMac
|
||||||
|
macos_instance:
|
||||||
|
image: ghcr.io/cirruslabs/macos-ventura-xcode:14.3.1
|
||||||
|
buildReceiverMac_script:
|
||||||
|
- source .secure_files/.env
|
||||||
|
- sudo security add-certificates -k /Library/Keychains/System.keychain ./.secure_files/developerID_application.cer
|
||||||
|
- security unlock-keychain -p "admin" ~/Library/Keychains/login.keychain
|
||||||
|
- security import ./.secure_files/Certificates.p12 -k ~/Library/Keychains/login.keychain -P "$CERTIFICATES_PASSWORD" -T /usr/bin/codesign
|
||||||
|
- cd receivers/electron
|
||||||
|
- npm install
|
||||||
|
- npm run build
|
||||||
|
- npm run make -- --platform="darwin" --arch="arm64"
|
||||||
|
- npm run make -- --platform="darwin" --arch="x64"
|
||||||
|
binary_artifacts:
|
||||||
|
path: receivers/electron/out/*
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,3 +5,4 @@
|
||||||
|
|
||||||
node_modules/
|
node_modules/
|
||||||
.wrangler/
|
.wrangler/
|
||||||
|
.secure_files/
|
||||||
|
|
|
@ -20,6 +20,7 @@ buildMac:
|
||||||
tags:
|
tags:
|
||||||
- tart-installed
|
- tart-installed
|
||||||
before_script:
|
before_script:
|
||||||
|
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
|
||||||
- cd receivers/electron
|
- cd receivers/electron
|
||||||
script:
|
script:
|
||||||
- npm install
|
- npm install
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue