Skip to content

github/workflows: run CodeQL job on Arch Linux #408

github/workflows: run CodeQL job on Arch Linux

github/workflows: run CodeQL job on Arch Linux #408

Workflow file for this run

name: lone
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build-and-test:
runs-on: ubuntu-latest
container: archlinux:base-devel
strategy:
fail-fast: false
matrix:
compiler:
- name: cc
env:
CC: cc
- name: gcc
env:
CC: gcc
- name: clang
env:
CC: clang
linker:
- name: ld
env:
LD: ld
- name: lld
env:
LD: lld
- name: mold
env:
LD: mold
- name: mold+spare-segments
env:
LD: mold
LDFLAGS: -Wl,--spare-program-headers,2
env:
CC: ${{ matrix.compiler.env.CC }}
LD: ${{ matrix.linker.env.LD }}
CFLAGS: ${{ matrix.compiler.env.CFLAGS }}
LDFLAGS: ${{ matrix.linker.env.LDFLAGS }}
name: ${{ matrix.compiler.name }} ${{ matrix.linker.name }}
steps:
- name: Set up pacman keys
run: pacman-key --init
- name: Update packages and install dependencies
run: pacman -Syu --noconfirm clang lld llvm mold
- name: Checkout lone repository
uses: actions/checkout@v4
- name: Build lone
run: make --jobs --output-sync lone
- name: Build lone's tools
run: make --jobs --output-sync tools
- name: Build lone's test suite
run: make --jobs --output-sync tests
- name: Test lone
run: make test
analyze:
name: CodeQL analysis
runs-on: ubuntu-latest
container: archlinux:base-devel
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: c-cpp

Check failure on line 86 in .github/workflows/lone.yml

View workflow run for this annotation

GitHub Actions / lone

Invalid workflow file

The workflow is not valid. .github/workflows/lone.yml (Line: 86, Col: 19): Unexpected value 'c-cpp' .github/workflows/lone.yml (Line: 87, Col: 21): Unexpected value 'manual'
build-mode: manual
steps:
- name: Checkout lone repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Build lone
run: make
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"