fixed build process #595
Workflow file for this run
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 and Release | |
on: | |
push: | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
branches: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
generate-image: | |
name: Generate Image | |
runs-on: rlxos-server | |
timeout-minutes: 47000 | |
strategy: | |
matrix: | |
board: | |
- amd64 | |
variant: | |
- lite | |
- desktop | |
env: | |
CACHE_PATH: ${{ secrets.CACHE_PATH }} | |
NO_PRINT_PROGRESS: 1 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup Environment | |
run: | | |
VERSION=${GITHUB_REF#refs/*/} | |
if [[ "${GITHUB_REF}" =~ "refs/heads/" ]] ; then | |
CODENAME="experimental" | |
else | |
CODENAME="stable" | |
fi | |
echo "ARCH=${{matrix.board}}" >> $GITHUB_ENV | |
echo "VERSION=${VERSION}" >> $GITHUB_ENV | |
echo "CODENAME=${CODENAME}" >> $GITHUB_ENV | |
echo "NO CHANGELOG" > files/changelog | |
- name: Cleanup build cache | |
run: make clean | |
- name: Make System Apps | |
run: | | |
make cache ELEMENT=boards/${{matrix.board}}-${{matrix.variant}}/apps.yml | |
- name: Make System Image | |
run: | | |
make cache ELEMENT=boards/${{matrix.board}}-${{matrix.variant}}/image.yml | |
- name: Make Installer ISO | |
run: | | |
make cache ELEMENT=boards/${{matrix.board}}-${{matrix.variant}}/installer.yml | |
- name: Release System Image | |
run: | | |
make checkout ELEMENT=boards/${{matrix.board}}-${{matrix.variant}}/image.yml RELEASE_PATH=${CACHE_PATH}/releases/${{matrix.board}}/${{matrix.variant}}/${CODENAME} | |
- name: Release Installer ISO | |
run: | | |
make checkout ELEMENT=boards/${{matrix.board}}-${{matrix.variant}}/installer.yml RELEASE_PATH=${CACHE_PATH}/releases/${{matrix.board}}/${{matrix.variant}}/${CODENAME}/${VERSION} | |
- name: Update Metadata | |
run: make metadata RELEASE_PATH=${CACHE_PATH}/apps/${CODENAME} |