diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..b479572a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,49 @@ +name: Build + +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + workflow_dispatch: + +jobs: + build: + runs-on: macos-26 + name: full build + env: + SDK_VERSION: 13.3.0.GA + DEVELOPER_DIR: /Applications/Xcode_26.2.app/Contents/Developer + steps: + - name: Checkout repository + uses: actions/checkout@v7 + + - name: Use Node.js + uses: actions/setup-node@v6 + with: + node-version: '24.x' + + - name: Set up JDK + uses: actions/setup-java@v5 + with: + java-version: '22' + distribution: 'temurin' + + - name: Setup Android SDK + uses: android-actions/setup-android@v3 + + - run: npm i -g titanium + name: Install Titanium CLI + + - run: ti sdk install ${{ env.SDK_VERSION }} --force + name: Install SDK + if: steps.titanium-cache.outputs.cache-hit != 'true' + + - name: Run build script + run: ./build.sh + + - name: Upload artifact + uses: actions/upload-artifact@v7 + with: + name: hyperloop-module + path: dist/hyperloop-*.zip diff --git a/README.md b/README.md index 398e580a..88c3370f 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,11 @@ This repo contains the source code for Hyperloop, which lets you extend your Tit You must have the following on your machine to build it using `build.sh`, however, you can use `./tools/build.sh` to bootstrap your environment with the necessary build tools if you do not: -- Titanium SDK 12.4.0+ (iOS) / 12.7.0+ (Android) -- iOS 13.0+ / Android 5.0+ -- grunt -- Ant +- Titanium SDK 13.3.0+ + +## Release + +The "build" workflow generates a ZIP file `hyperloop-module.zip` that contains the final release ZIP (e.g. `hyperloop-8.0.1.zip`). If you want to release a new hyperloop version wait for the "build" workflow to finish, grab the `hyperloop-module.zip` artifact, get the file `hyperloop-x.x.x.zip` out of that ZIP and use that for the release. ## License