mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-23 16:20:53 +01:00
Add Github Actions configuation
This commit is contained in:
parent
04d9ee40c8
commit
3aede1a23e
23
.github/workflows/build.yml
vendored
Normal file
23
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
name: CI
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: macOS-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Project
|
||||
uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Switch to Xcode 11
|
||||
run: sudo xcode-select -s /Applications/Xcode_11.app
|
||||
|
||||
- name: Run Build
|
||||
env:
|
||||
ENCRYPTION_SECRET: ${{ secrets.ENCRYPTION_SECRET }}
|
||||
KEY_SECRET: ${{ secrets.KEY_SECRET }}
|
||||
run: buildscripts/ci-build.sh
|
BIN
buildscripts/certs/apple.cer
Normal file
BIN
buildscripts/certs/apple.cer
Normal file
Binary file not shown.
20
buildscripts/ci-build.sh
Executable file
20
buildscripts/ci-build.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
set -v
|
||||
set -e
|
||||
|
||||
openssl aes-256-cbc -k "$ENCRYPTION_SECRET" -in buildscripts/certs/dev.cer.enc -d -a -out buildscripts/certs/dev.cer
|
||||
openssl aes-256-cbc -k "$ENCRYPTION_SECRET" -in buildscripts/certs/dev.p12.enc -d -a -out buildscripts/certs/dev.p12
|
||||
|
||||
security create-keychain -p github-actions github-build.keychain
|
||||
security import buildscripts/certs/apple.cer -k ~/Library/Keychains/github-build.keychain -A
|
||||
security import buildscripts/certs/dev.cer -k ~/Library/Keychains/github-build.keychain -A
|
||||
security import buildscripts/certs/dev.p12 -k ~/Library/Keychains/github-build.keychain -P $KEY_SECRET -A
|
||||
security set-key-partition-list -S apple-tool:,apple: -s -k github-actions github-build.keychain
|
||||
security default-keychain -s github-build.keychain
|
||||
|
||||
rm -f ./buildscripts/certs/dev.cer
|
||||
rm -f ./buildscripts/certs/dev.p12
|
||||
|
||||
xcodebuild -scheme 'NetNewsWire' -configuration Release -allowProvisioningUpdates -showBuildTimingSummary
|
||||
|
||||
security delete-keychain github-build.keychain
|
Loading…
Reference in New Issue
Block a user