Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 31 additions & 44 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,52 +1,39 @@
name: Build

on:
workflow_dispatch:
push:
branches:
- v*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build
runs-on: macos-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
- name: Install Theos
uses: Randomblock1/theos-action@v1.4
with:
# Where to install Theos
theos-dir: ${{ github.workspace }}/theos
# Where to clone Theos from (git URL)
theos-src: https://github.com/theos/theos
# Where to clone the iOS SDKs from (GitHub repository URL)
theos-sdks: https://github.com/theos/sdks
# Which branch to clone from SDK repo
theos-sdks-branch: master
# Whether to enable Orion, which adds support for Swift tweaks
orion: false
- name: Run build script
run: chmod +x ./build.sh && ./build.sh
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create
'${{ github.ref_name }}'
--repo '${{ github.repository }}'
--notes ""
-t 'Release ${{ github.ref_name }}'
- name: Upload artifact signatures to GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
# Upload to GitHub Release using the `gh` CLI.
# `dist/` contains the built packages, and the
# sigstore-produced signatures and certificates.
run: >-
gh release upload
'${{ github.ref_name }}' packages/**
--repo '${{ github.repository }}'

- name: Checkout
uses: actions/checkout@v4

- name: Install Theos
uses: Randomblock1/theos-action@v1.4
with:
theos-dir: ${{ github.workspace }}/theos
theos-src: https://github.com/theos/theos
theos-sdks: https://github.com/theos/sdks
theos-sdks-branch: master
orion: false

- name: Build AutoFLEX
run: |
chmod +x ./build.sh
./build.sh

- name: Show generated packages
run: |
echo "Generated files:"
find packages -type f -maxdepth 3 -print || true

- name: Upload AutoFLEX artifact
uses: actions/upload-artifact@v4
with:
name: AutoFLEX-DEB
path: packages/**
if-no-files-found: error