Skip to content

@dependabot[bot] CI on 31/merge - #240

@dependabot[bot] CI on 31/merge -

@dependabot[bot] CI on 31/merge - #240

Workflow file for this run

name: C/C++ and Bazel CI
on: [push, pull_request]
# Not using 'inputs' here, since we take no inputs at this time -- just the 'github' context.
# Note: on type workflow_run commit message would be github.event.workflow_run.head_commit.message
# https://stackoverflow.com/a/63619526
# Available data: https://stackoverflow.com/a/75715955
run-name: "@${{github.actor}} CI on ${{ github.ref_name }} - ${{ github.event.head_commit.message }}"
# Set some global arguments, e.g. whether to enable or disable coverage
# collection:
env:
ENABLE_BAZEL_COVERAGE: true # TODO: This should be set only in the ci-bazel.yml (which is included from ci.yml) and passed here.
# End arguments section.
jobs:
cpp:
runs-on: ubuntu-latest
# needs: [jobs, we, want, to, run, first]
steps:
- uses: actions/setup-node@v7 # for local execution with act, when using windows-latest with -P windows-latest=-self-hosted; needed for some actions like cache@v4
# Checks-out your repository under $GITHUB_WORKSPACE, which is the CWD for
# the rest of the steps
- uses: actions/checkout@v6
with:
submodules: true
- name: install deps with prebuilt SDL (no bazel)
run: sudo apt-get update && sudo apt-get -y install libsdl1.2-dev libsdl-gfx1.2-dev libgmp3-dev autoconf automake libgl1-mesa-dev libglu1-mesa-dev dos2unix
- name: install glict
run: cd vendor/github.com/ivucica/glict/glict && dos2unix autogen.sh && chmod +x autogen.sh && ./autogen.sh && chmod +x configure && ./configure && make && sudo make install
- name: autogen
run: dos2unix autogen.sh && chmod +x autogen.sh && ./autogen.sh
- name: configure
run: chmod +x configure && ./configure
- name: make
run: make
- name: make check
run: make check
#- name: make distcheck
# run: make distcheck
bazel:
uses: ./.github/workflows/ci-bazel.yml
secrets:
BUILDBUDDY_ORG_API_KEY: ${{ secrets.BUILDBUDDY_ORG_API_KEY }}