Recursive submodules #13
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
# Copyright 2023 Pluto TV | |
# Copyright 2022 Google LLC | |
# | |
# Use of this source code is governed by a BSD-style | |
# license that can be found in the LICENSE file or at | |
# https://developers.google.com/open-source/licenses/bsd | |
name: GitHub Nightly Build | |
on: | |
push: | |
branches: [ feature/TRANS-4831-nighty-builds ] | |
workflow_dispatch: | |
env: | |
DEVELOPMENT_BRANCH: "pluto-cmake" | |
jobs: | |
build_linux: | |
name: Build artifacts and upload to GitHub | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install build tools | |
run: | | |
sudo apt update && sudo apt install -y \ | |
cmake | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ env.DEVELOPMENT_BRANCH }} | |
submodules: recursive | |
- name: Generate build files | |
run: | | |
mkdir -p build/ | |
cmake \ | |
-DCMAKE_BUILD_TYPE="Release" \ | |
-DBUILD_SHARED_LIBS=1 \ | |
-S . \ | |
-B build/ | |
- name: Build | |
run: cmake --build build/ | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: nightly-build | |
path: build/packager/libpackager.so | |
draft_release: | |
needs: [build_linux] | |
name: Create GitHub nightly draft release | |
runs-on: ubuntu-latest | |
outputs: | |
release_id: ${{ steps.draft_release.outputs.id }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Draft release | |
id: draft_release | |
uses: ncipollo/[email protected] | |
with: | |
allowUpdates: true | |
token: ${{ secrets.BUILD_TOKEN_EPHEMERAL}} | |
commit: ${{ env.DEVELOPMENT_BRANCH }} | |
name: "Nightly Build" | |
tag: "nightly" | |
draft: true | |
body: "Latest build of the development branch" | |