1.1.7 #139
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Dopamine: build and upload" | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- ".gitignore" | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- ".gitignore" | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 1 1 *' | |
- cron: '0 0 1 4 *' | |
- cron: '0 0 30 6 *' | |
- cron: '0 0 28 9 *' | |
- cron: '0 0 27 12 *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Procursus | |
uses: dhinakg/procursus-action@main | |
with: | |
packages: ldid findutils sed coreutils trustcache make | |
- name: Install THEOS (without SDKs) | |
run: | | |
set -x | |
export BASEDIR="$(pwd)" | |
export THEOS="${BASEDIR}/theos" | |
mkdir -p $THEOS | |
curl -fsSL https://raw.githubusercontent.com/theos/theos/master/bin/install-theos >> install-theos.sh | |
gsed -E "/^\s*get_theos\s*$/,+1 s/^(\s*)(get_sdks)\s*$/\1mkdir -p \${THEOS}\/sdks\n\1touch \${THEOS}\/sdks\/sdk\n\1\2/g" -i install-theos.sh | |
bash install-theos.sh | |
cd $BASEDIR | |
- name: Set Environment Variables | |
run: | | |
set -x | |
T2=$(TZ=UTC-2 date +'%Y%m%d_%H%M%S') | |
TS=$(date -j -f "%Y%m%d_%H%M%S" "${T2}" +%s) | |
SHASH=$(git rev-parse --short HEAD) | |
echo "ctime=${T2}" >> $GITHUB_ENV | |
echo "ctimestamp=${TS}" >> $GITHUB_ENV | |
echo "shorthash=${SHASH}" >> $GITHUB_ENV | |
- name: Build | |
run: | | |
set -x | |
sudo security import Exploits/fastPath/arm.pfx -k /Library/Keychains/System.keychain -P password -A | |
export BASEDIR="$(pwd)" | |
export THEOS="${BASEDIR}/theos" | |
gmake -j$(sysctl -n hw.physicalcpu) | |
cp -a Dopamine/Dopamine.tipa Dopamine/Dopamine_${{ env.shorthash }}_${{ env.ctime }}.tipa | |
cp -a Dopamine/Dopamine.tipa Dopamine/Dopamine_Latest.tipa | |
- name: Upload Latest Artifact | |
id: dopamine-latest-upload | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Dopamine_Latest | |
path: | | |
${{ github.workspace }}/Dopamine/Dopamine_Latest.tipa | |
- name: Upload Hashed Artifact | |
id: dopamine-hashed-upload | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Dopamine_${{ env.shorthash }}_${{ env.ctime }} | |
path: | | |
${{ github.workspace }}/Dopamine/Dopamine_${{ env.shorthash }}_${{ env.ctime }}.tipa |