Skip to content

Build the package on each commit #21

Build the package on each commit

Build the package on each commit #21

Workflow file for this run

name: Theos CI
on:
push:
#tags:
# - 'v*'
#branches: [ master ]
release:
types: [published]
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: Get tag
if: ${{ startsWith(github.ref, 'refs/tags/') }}
id: tag
uses: dawidd6/action-get-tag@v1
- name: Build Release package - Rootful Substrate
#if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
make clean
TAGNAME=${{ steps.tag.outputs.tag }}
TAGNAME=${TAGNAME:-v0.0.0-debug}
make package FINALPACKAGE=1 PACKAGE_VERSION=${TAGNAME#v}+rootful
- name: Build Release package - Rootless Substrate
#if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
make clean
TAGNAME=${{ steps.tag.outputs.tag }}
TAGNAME=${TAGNAME:-v0.0.0-debug}
make package ROOTLESS=1 FINALPACKAGE=1 PACKAGE_VERSION=${TAGNAME#v}+rootless
- name: Build Release package - Rootless Roothide Substrate
#if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
make clean
TAGNAME=${{ steps.tag.outputs.tag }}
TAGNAME=${TAGNAME:-v0.0.0-debug}
make package ROOTHIDE=1 FINALPACKAGE=1 PACKAGE_VERSION=${TAGNAME#v}+roothide
- 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 }}