update CHANGELOG.md #9
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: | |
pull_request: | |
branches: | |
- main | |
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/checkout@v4.1.1 | |
- 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/checkout@v4.1.1 | |
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/checkout@v4.1.1 | |
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@v2 | |
with: | |
name: packages-${{ env.VERSION }} | |
path: | | |
*.tipa | |
*.dSYM | |
- name: Release | |
uses: softprops/action-gh-release@v0.1.15 | |
with: | |
tag_name: v${{ env.VERSION }} | |
body_path: CHANGELOG.md | |
draft: false | |
prerelease: false | |
files: | | |
*.tipa |