123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- name: Ubuntu Touch
- on:
- push:
- branches:
- - master
- tags:
- - '*'
- pull_request: {}
- jobs:
- clickable:
- strategy:
- fail-fast: false
- matrix:
- build_type: [Debug, Release]
- arch: [amd64, arm64, armhf]
-
- opengl: [glew, sdl]
- exclude:
-
- - arch: arm64
- build_type: Debug
- runs-on: ubuntu-20.04
- steps:
- - uses: actions/checkout@v2
- with:
-
- fetch-depth: 0
- submodules: true
- - name: Install clickable
- run: |
- # For whatever reason, I have to manually install runc before
- # docker.io or containerd, else it fails because of broken dependency
- # Using apt-get because apt complains it shouldn't be used in scripts
- sudo apt-get update
- sudo apt-get install -y runc
- sudo apt-get install -y docker.io adb git python3 python3-pip
- pip3 install --user git+https://gitlab.com/clickable/clickable.git
- # Clickable requires a reboot. This is a sneaky way to bypass that :^)
- sudo systemctl unmask docker.service
- sudo systemctl start docker.service
- - name: Build (OpenGL with GLEW)
- if: ${{ matrix.opengl == 'glew' }}
- env:
- BUILD_TYPE: ${{ (matrix.build_type == 'Debug') && '--debug' || '' }}
- ARCH: ${{ matrix.arch }}
- run: |
- ~/.local/bin/clickable build --verbose ${BUILD_TYPE} --arch ${ARCH} \
- --config mk/clickable/build-with-glew.json
- - name: Build (OpenGL with GLbinding)
- if: ${{ matrix.opengl == 'glbinding' }}
- env:
- BUILD_TYPE: ${{ (matrix.build_type == 'Debug') && '--debug' || '' }}
- ARCH: ${{ matrix.arch }}
- run: |
- ~/.local/bin/clickable build --verbose ${BUILD_TYPE} --arch ${ARCH} \
- --config mk/clickable/build-with-glbinding.json
- - name: Build (no OpenGL)
- if: ${{ matrix.opengl == 'sdl' }}
- env:
- BUILD_TYPE: ${{ (matrix.build_type == 'Debug') && '--debug' || '' }}
- ARCH: ${{ matrix.arch }}
- run: |
- ~/.local/bin/clickable build --verbose ${BUILD_TYPE} --arch ${ARCH}
- - uses: actions/upload-artifact@v2
- with:
- name: "clickable-${{ matrix.arch }}-${{ matrix.build_type }}-${{ matrix.opengl }}-click"
- path: build.clickable/*.click
- if-no-files-found: ignore
- - name: Publish to Open Store
- if: ${{ github.ref == 'refs/heads/master' && matrix.build_type == 'Release' && matrix.opengl == 'sdl' }}
- env:
- ARCH: ${{ matrix.arch }}
- OPENSTORE_KEY: ${{ secrets.OPENSTORE_KEY }}
- run: |
- ~/.local/bin/clickable publish "* $(git log -1 --pretty=%B | \
- head -1)" --apikey ${OPENSTORE_KEY} \
- --arch ${ARCH}
|