Support building for rootless #11
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: Theos CI | |
on: | |
push: | |
#tags: | |
# - 'v*' | |
#branches: [ master ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Check cache | |
id: verify-cache | |
run: | | |
echo "::set-output name=heads::`git ls-remote https://github.com/theos/theos | head -n 1 | cut -f 1`-`git ls-remote https://github.com/xybp888/iOS-SDKs | head -n 1 | cut -f 1`" | |
- name: Use cache | |
id: cache | |
uses: actions/cache@v2 | |
with: | |
path: ${{ github.workspace }}/theos | |
key: ${{ runner.os }}-${{ steps.verify-cache.outputs.heads }} | |
- name: Prepare Theos | |
uses: Randomblock1/theos-action@v1 | |
- name: Build Release package - Rootful Substrate | |
run: | | |
make clean | |
TAGNAME=${{ steps.tag.outputs.tag }} | |
make package FINALPACKAGE=1 PACKAGE_VERSION=${TAGNAME#v}+rootful | |
- name: Build Release package - Rootless Substrate | |
run: | | |
make clean | |
TAGNAME=${{ steps.tag.outputs.tag }} | |
make package ROOTLESS=1 FINALPACKAGE=1 PACKAGE_VERSION=${TAGNAME#v}+rootless | |
- name: Upload to GitHub Actions artifact | |
uses: NyaMisty/upload-artifact-as-is@master | |
with: | |
path: packages/* | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: ${{ github.workspace }}/packages/*.deb | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |