From 5f387a66962834f2e5e76f9d20a187c93b834e12 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com> Date: Sat, 2 Mar 2024 10:49:52 +0700 Subject: [PATCH] Setup GitHub Actions --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..265c806 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Theos CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v3 + + - name: Prepare Theos + # Don't use @main in production, this repo is specifically for testing it. + uses: Randomblock1/theos-action@v1 + + - name: Build + run: | + make FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootful + make FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless + # make FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=roothide + + - name: Upload packages + uses: actions/upload-artifact@v3 + with: + name: packages + path: packages/*.deb +