update CHANGELOG.md #2
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 & Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- release | |
env: | |
THEOS: "" | |
VERSION: "0.0.0-0" | |
jobs: | |
fetch-and-release: | |
runs-on: macos-14 | |
steps: | |
- name: Setup Xcode | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '15.4' | |
- name: Checkout Repository | |
uses: actions/[email protected] | |
- name: Install Dependencies | |
run: | | |
echo /usr/local/opt/make/libexec/gnubin >> $GITHUB_PATH | |
echo /opt/homebrew/opt/make/libexec/gnubin >> $GITHUB_PATH | |
HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install dpkg ldid-procursus make xcbeautify openssl@3 | |
VERSION_FILE="TrollFools/Version.xcconfig" | |
VERSION_MAIN=$(grep "VERSION" $VERSION_FILE | cut -d'=' -f2 | tr -d '[:space:]') | |
VERSION_BUILD=$(grep "BUILD_NUMBER" $VERSION_FILE | cut -d'=' -f2 | tr -d '[:space:]') | |
VERSION=$VERSION_MAIN-$VERSION_BUILD | |
echo "VERSION=$VERSION" >> $GITHUB_ENV | |
echo "Version: $VERSION" | |
- name: Checkout THEOS | |
uses: actions/[email protected] | |
with: | |
repository: theos/theos | |
ref: 942cd0c015f93d8c2d714ba0c69e7f420157c382 | |
path: theos | |
submodules: recursive | |
- name: Add THEOS environment variables | |
run: | | |
rm -rf $GITHUB_WORKSPACE/theos/sdks | |
echo "THEOS=$GITHUB_WORKSPACE/theos" >> $GITHUB_ENV | |
echo "THEOS_PACKAGE_SCHEME=rootless" >> $GITHUB_ENV | |
echo "FINALPACKAGE=1" >> $GITHUB_ENV | |
- name: Checkout SDKs | |
uses: actions/[email protected] | |
with: | |
repository: theos/sdks | |
ref: master | |
path: ${{ env.THEOS }}/sdks | |
- name: Build Packages | |
run: | | |
make package | |
cp packages/*.tipa . | |
find .theos/obj -name "*.dSYM" -exec cp -r {} . \; | |
- name: Upload Packages | |
uses: actions/upload-artifact@v4 | |
with: | |
name: packages-${{ env.VERSION }} | |
path: | | |
*.tipa | |
*.dSYM | |
- name: Release | |
uses: softprops/[email protected] | |
with: | |
tag_name: v${{ env.VERSION }} | |
body_path: CHANGELOG.md | |
draft: false | |
prerelease: false | |
files: | | |
*.tipa |