Skip to content

111

111 #18

Workflow file for this run

name: C/C++ CI
on:
push:
#tags:
# - 'v*'
#branches: [ master ]
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
provider: [LIBKRW] #[TFP0, LIBKRW, LIBKERNRW]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Prepare Theos
uses: Randomblock1/theos-action@v1
- name: Build package
run: |
cp -rf include/* $THEOS/vendor/include/
rm -f packages/*
cp control.template control
if [[ ${{matrix.provider}} == TFP0 ]]; then
#sed -i 's/,{{.depends}}//g' control
USE_TFP0=1 make package FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless
elif [[ ${{matrix.provider}} == LIBKRW ]]; then
sed -i 's/{{.depends}}/libkrw/g' control
USE_LIBKRW=1 make package FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless
elif [[ ${{matrix.provider}} == LIBKERNRW ]]; then
sed -i 's/{{.depends}}/libkernrw0/g' control
USE_LIBKERNRW=1 make package FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless
fi
- name: Publish artifact
uses: actions/upload-artifact@v2
with:
name: fouldecrypt-${{matrix.provider}}
path: ${{ github.workspace }}/packages/*.deb