This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
chore: le fail (#6) #23
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 | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-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/[email protected] | |
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/*-arm.deb | |
- name: Build rootless package | |
run: | | |
rm -f packages/* | |
make clean package FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless | |
- name: Upload rootless package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "Rootless package built by ${{ matrix.os }}" | |
path: ${{ github.workspace }}/packages/*-arm64.deb |