Github CI build #42
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: Github CI build | |
# GITHUB_REF_NAME in the form of release-$VERSION-$RELEASE-$EXTRA_NAME | |
on: | |
push: | |
tags: | |
- release-**-**-** | |
workflow_dispatch: | |
env: | |
RELEASESDK: 4.5.0.16 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Maximize build space | |
uses: easimon/maximize-build-space@master | |
with: | |
root-reserve-mb: 20480 | |
swap-size-mb: 1024 | |
remove-dotnet: 'true' | |
remove-haskell: 'true' | |
remove-android: 'true' | |
remove-docker-images: 'true' | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build mic | |
run: | | |
export VERSION=devel | |
export RELEASE=4.5.0.24 | |
export EXTRA_NAME=-alpha2 | |
docker run --rm --privileged --mount type=bind,src=$PWD,dst=/share --mount type=bind,src=/data,dst=/data --env-file env.list -e VERSION -e RELEASE -e EXTRA_NAME coderus/sailfishos-platform-sdk:$RELEASESDK /bin/bash -c " | |
/share/scripts/create-image.sh --release $RELEASE --version $VERSION ;" | |
- name: Update release | |
run: | | |
gh release upload ${{ github.ref_name }} output/mic/*.7z --clobber | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |