From aad4dd760e3edb7504127dbd1e68bc62aa59b834 Mon Sep 17 00:00:00 2001 From: Jack Matthews Date: Fri, 17 Mar 2023 15:50:25 -0400 Subject: [PATCH] [CI] Add --- .github/workflows/build.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 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..de4412f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: Build + +on: [push] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, ubuntu-latest] + + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - name: Check cache + run: | + echo upstream_heads=`git ls-remote https://github.com/theos/theos | head -n 1 | cut -f 1`-`git ls-remote https://github.com/theos/sdks | head -n 1 | cut -f 1` >> $GITHUB_ENV + + - name: Use cache + id: cache + uses: actions/cache@v3 + with: + path: ${{ github.workspace }}/theos + key: ${{ runner.os }}-${{ env.upstream_heads }} + + - name: Prepare Theos + uses: Randomblock1/theos-action@v1.2 + with: + orion: "true" + + - name: Build package + run: | + rm -f packages/* + make package FINALPACKAGE=1 + + - name: Upload package + uses: actions/upload-artifact@v3 + with: + name: "Package built by ${{ matrix.os }}" + path: ${{ github.workspace }}/packages/*.deb