Initial work to support per-application framebuffer #1426
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 oxide | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/build.yml' | |
- 'applications/**' | |
- 'shared/**' | |
- 'assets/**' | |
- 'interfaces/**' | |
- 'qmake/**' | |
- 'oxide.pro' | |
- 'Makefile' | |
- 'package' | |
pull_request: | |
paths: | |
- '.github/workflows/build.yml' | |
- 'applications/**' | |
- 'shared/**' | |
- 'assets/**' | |
- 'interfaces/**' | |
- 'qmake/**' | |
- 'oxide.pro' | |
- 'Makefile' | |
- 'package' | |
jobs: | |
build: | |
name: Build and package | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install toltecmk | |
run: pip install toltecmk requests==2.26.0 | |
- name: Build packages | |
run: make package | |
timeout-minutes: 15 | |
- name: Save packages | |
uses: actions/upload-artifact@v3 | |
with: | |
name: packages | |
path: release | |
- name: Save packages | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build | |
path: .build/package/build/rmall/src/release | |
- name: Save repo | |
uses: actions/upload-artifact@v3 | |
with: | |
name: repo | |
path: .build/package/dist/rmall | |
test: | |
name: Test packages | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- uses: actions/download-artifact@v3 | |
id: repo | |
with: | |
name: repo | |
- uses: actions/download-artifact@v3 | |
id: build | |
with: | |
name: build | |
- name: Copy tests | |
run: | | |
cp -al \ | |
${{ steps.build.outputs.download-path }}/opt/share/tests \ | |
${{ steps.repo.outputs.download-path }} | |
- uses: Eeems-Org/run-in-remarkable-action@v1 | |
with: | |
setup: | | |
set -ex | |
echo "src/gz local-rmall file:///opt/tmp/src" > /opt/etc/opkg.conf.d/16-local.conf | |
run: | | |
set -ex | |
echo Y | toltecctl generate-opkg-conf | |
opkg update | |
opkg install oxide oxide-extra inject_evdev liboxide-dev | |
# TODO test tarnish service | |
ls tests | while read test; do | |
pushd tests/$test | |
tests/$test/$test | |
popd | |
done | |
opkg remove --force-removal-of-dependent-packages liboxide libsentry | |
path: ${{ steps.repo.outputs.download-path }} | |
release: | |
needs: [build,test] | |
if: ${{ github.ref == 'refs/heads/master' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/download-artifact@v3 | |
with: | |
name: build | |
path: .build | |
- name: Create Sentry release | |
uses: getsentry/action-release@v1 | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
SENTRY_URL: https://sentry.eeems.codes | |
- name: Setup Sentry CLI | |
uses: mathieu-bour/setup-sentry-cli@v1 | |
with: | |
version: latest | |
url: https://sentry.eeems.codes | |
token: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
organization: ${{ secrets.SENTRY_ORG }} | |
project: ${{ secrets.SENTRY_PROJECT }} | |
- name: Upload debug artifacts | |
run: sentry-cli debug-files upload --include-sources . |