Skip to content

feat: refactor github build steps #347

feat: refactor github build steps

feat: refactor github build steps #347

Workflow file for this run

# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Tests
on:
workflow_dispatch:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: 📦 Prepare dependencies
uses: ./.github/actions/prepare-deps
- name: 🕸️ Build Web
run: |
bazel-7.4.1 build web/...
- name: 🔧 Make build script executable
run: chmod +x cpp/build.sh
- name: 🚧 Build C++ (No Cache Hit)
if: ${{ steps.cache-webrtc.outputs.cache-hit != 'true' }}
run: |
cd cpp && ./build.sh --cached_webrtc=false
- name: 🚧 Build C++ (Cache Hit)
if: ${{ steps.cache-webrtc.outputs.cache-hit == 'true' }}
run: |
cd cpp && ./build.sh --cached_webrtc=true