Release v1.5.23 #70
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: Release | |
run-name: "Release ${{ github.event.release.tag_name }}" | |
on: | |
release: | |
types: [ published ] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
release-webos: | |
name: Release (webOS) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Download ares-cli-rs | |
uses: robinraju/[email protected] | |
with: | |
repository: "webosbrew/ares-cli-rs" | |
latest: true | |
fileName: "ares-package_*.deb" | |
out-file-path: "temp" | |
- name: Download Manifest Generator | |
uses: robinraju/[email protected] | |
with: | |
repository: "webosbrew/dev-toolbox-cli" | |
latest: true | |
fileName: "webosbrew-toolbox-gen-manifest_*.deb" | |
out-file-path: "temp" | |
- name: Install webOS CLI | |
run: sudo apt-get install ./temp/*.deb | |
- name: webOS Build | |
uses: ./.github/actions/build-webos | |
with: | |
build-type: RelWithDebInfo | |
- name: Create Release (webOS) | |
id: create_release_webos | |
uses: ncipollo/release-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ github.event.release.tag_name }} | |
allowUpdates: true | |
omitNameDuringUpdate: true | |
omitBody: true | |
omitPrereleaseDuringUpdate: true | |
artifacts: dist/*.ipk,dist/*_dbgsym.tar.gz,dist/*.manifest.json | |
release-raspi: | |
name: Release (Raspberry Pi) | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Update Packages | |
shell: bash | |
run: sudo apt-get -yq update | |
- name: Prepare Sysroot | |
id: pi-sysroot | |
uses: mariotaku/raspbian-sysroot-action@main | |
with: | |
packages: ${{github.workspace}}/scripts/raspi/sysroot-packages.list | |
- name: Install Build Tools | |
shell: bash | |
run: sudo apt-get -y -qq install crossbuild-essential-armhf cmake gettext | |
- name: Create Build Environment | |
run: cmake -E make_directory ${{github.workspace}}/build | |
- name: Configure CMake | |
shell: bash | |
working-directory: ${{github.workspace}}/build | |
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DTARGET_RASPI=ON | |
-DCMAKE_TOOLCHAIN_FILE=${{steps.pi-sysroot.outputs.cmake-toolchain}} | |
- name: Build | |
working-directory: ${{github.workspace}}/build | |
shell: bash | |
run: cmake --build . --config $BUILD_TYPE | |
- name: Package | |
working-directory: ${{github.workspace}}/build | |
run: | | |
cpack | |
dpkg-scanpackages . > Release | |
- name: Create Release (Raspberry Pi) | |
id: create_release_raspi | |
uses: ncipollo/release-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ github.event.release.tag_name }} | |
allowUpdates: true | |
omitNameDuringUpdate: true | |
omitBody: true | |
omitPrereleaseDuringUpdate: true | |
artifacts: build/*.deb,build/Release | |
release-steamlink: | |
name: Release (Steam Link) | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Steam Link SDK | |
uses: ./.github/actions/steamlink-sdk | |
with: | |
path: .steamlink-sdk | |
- name: Install Build Tools | |
shell: bash | |
run: sudo apt-get -y -qq install cmake gettext | |
- name: Create Build Environment | |
run: cmake -E make_directory ${{github.workspace}}/build | |
- name: Configure CMake | |
shell: bash | |
working-directory: ${{github.workspace}}/build | |
run: | | |
source ${{github.workspace}}/.steamlink-sdk/setenv.sh | |
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE | |
env: | |
CMAKE_TOOLCHAIN_FILE: ${{github.workspace}}/.steamlink-sdk/toolchain/steamlink-toolchain.cmake | |
- name: Build | |
working-directory: ${{github.workspace}}/build | |
shell: bash | |
run: | | |
source ${{github.workspace}}/.steamlink-sdk/setenv.sh | |
cmake --build . --config $BUILD_TYPE | |
cpack | |
- name: Create Release (Steam Link) | |
id: create_release_steamlink | |
uses: ncipollo/release-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ github.event.release.tag_name }} | |
allowUpdates: true | |
omitNameDuringUpdate: true | |
omitBody: true | |
omitPrereleaseDuringUpdate: true | |
artifacts: dist/moonlight-tv_*_steamlink.* |