Skip to content

Added String.GetChar function (i.e. strchr) #407

Added String.GetChar function (i.e. strchr)

Added String.GetChar function (i.e. strchr) #407

Workflow file for this run

name: ci
on:
push:
branches: [master]
paths:
- '.github/workflows/ci.yaml'
- 'src/**'
- 'src_build/**'
- 'src_test/**'
- 'thirdparty/**'
- 'examples/**/*.c'
- 'examples/**/*.cc'
- 'carbon.h.in'
pull_request:
branches: [master]
types: [opened, synchronize]
paths:
- '.github/workflows/ci.yaml'
- 'src/**'
- 'src_build/**'
- 'src_test/**'
- 'thirdparty/**'
- 'examples/**/*.c'
- 'examples/**/*.cc'
- 'carbon.h.in'
schedule:
- cron: '0 9 * * 5'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
permissions: read-all
jobs:
ci:
permissions:
security-events: write
strategy:
matrix:
compiler: [gcc, clang]
fail-fast: false
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
steps:
- name: checkout-repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: setup-codeql
uses: github/codeql-action/init@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3
with:
languages: c-cpp
- name: install-dependencies
run: |
sudo apt-get install -y \
libx11-dev \
libxcursor-dev \
libxrandr-dev \
libxi-dev
- name: bootstrap
run: ${{ matrix.compiler }} -std=c11 src_build/make.c -o make
- name: build
run: ./make build
- name: test
run: ./make test
- name: examples
run: ./make examples
- name: analyze
uses: github/codeql-action/analyze@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3