forked from roothide/Bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23cd23d
commit 54212c3
Showing
1 changed file
with
59 additions
and
71 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,59 @@ | ||
name: Build RootHide Bootstrap .tipa | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 * * * *" | ||
|
||
jobs: | ||
build: | ||
name: Build RootHide Bootstrap .tipa | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Fetch from upstream repository RootHide/Bootstrap | ||
run: | | ||
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
git config --global user.name "${GITHUB_ACTOR}" | ||
git remote add upstream https://github.com/RootHide/Bootstrap | ||
git fetch upstream | ||
git fetch --all --prune | ||
git pull --rebase --strategy-option=theirs upstream main | ||
- name: Install Homebrew | ||
run: bash -c "$(curl -fsSL 'https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh')" | ||
|
||
- name: Install Theos | ||
run: bash -c "$(curl -fsSL 'https://raw.githubusercontent.com/RootHide/Theos/master/bin/install-theos')" | ||
|
||
- name: Install make | ||
run: brew install make | ||
|
||
- name: Setup Theos environment | ||
run: echo "THEOS=~/theos" >> $GITHUB_ENV | ||
|
||
- name: Make RootHide Bootstrap .tipa | ||
run: gmake -j$(sysctl -n hw.ncpu) package | ||
|
||
- name: Upload .tipa artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Bootstrap.tipa | ||
path: ./packages/Bootstrap.tipa | ||
|
||
- name: Delete old release | ||
uses: dev-drprasad/[email protected] | ||
with: | ||
delete_release: true | ||
tag_name: release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Get RootHide Bootstrap .tipa artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: Bootstrap.tipa | ||
|
||
- name: Create new rolling release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
name: Rolling RootHide Bootstrap Release | ||
body: This is an automatically updated build of the RootHide Bootstrap that fetches from upstream and builds every hour. | ||
artifacts: "Bootstrap.tipa" | ||
tag: release | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
name: Build and Package | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build Bootstrap | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Install Theos | ||
run: bash -c "$(curl -fsSL https://raw.githubusercontent.com/roothide/theos/master/bin/install-theos)" | ||
|
||
- name: Setup Environment | ||
run: echo "THEOS=~/theos" >> $GITHUB_ENV | ||
|
||
- name: Make Bootstrap Package | ||
run: make package | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Bootstrap.tipa | ||
path: ./packages/Bootstrap.tipa | ||
update-release: | ||
name: Release .tipa | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
steps: | ||
- name: Delete old release | ||
uses: dev-drprasad/[email protected] | ||
with: | ||
delete_release: true | ||
tag_name: release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Get artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: Bootstrap.tipa | ||
- name: Create new release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
name: Rolling Release | ||
body: These are automatically updated builds of the latest commit. | ||
artifacts: "Bootstrap.tipa" | ||
tag: release | ||
token: ${{ secrets.GITHUB_TOKEN }} |