Small improvements #38
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: Build rootless | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
make: | |
name: Build Tweak | |
runs-on: macos-latest | |
env: | |
THEOS: theos | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
with: | |
submodules: true | |
- name: Install ldid and xz | |
run: | | |
brew install ldid xz | |
- name: Setup Theos | |
uses: actions/checkout@master | |
with: | |
repository: theos/theos | |
path: theos | |
submodules: recursive | |
- name: Download SDKs | |
run: | | |
curl -LO https://github.com/theos/sdks/archive/master.zip | |
TMP=$(mktemp -d) | |
unzip master.zip -d $TMP | |
mv $TMP/sdks-master/*.sdk theos/sdks | |
rm -r master.zip $TMP | |
- name: Apply rootless patch | |
run: | | |
git apply rootless.patch | |
- name: Build Tweak | |
id: build | |
run: | | |
make clean package FINALPACKAGE=1 | |
echo "::set-output name=package::$(ls -t packages | head -n1)" | |
- name: Upload To GitHub Artifacts | |
uses: actions/upload-artifact@v2.2.2 | |
with: | |
path: ./packages/*.deb |