Jerry
f6310cdc91
All checks were successful
Build with gcc + clang / build (push) Successful in 1m1s
27 lines
883 B
YAML
27 lines
883 B
YAML
name: Build with gcc + clang
|
|
on:
|
|
push:
|
|
branches: [dev]
|
|
jobs:
|
|
build:
|
|
if: "github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]')"
|
|
runs-on: docker
|
|
container:
|
|
image: archlinux:latest
|
|
env:
|
|
CFLAGS: "-pipe -fno-plt -fexceptions -fstack-clash-protection -fcf-protection -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security"
|
|
steps:
|
|
- name: Prepare dependencies
|
|
run: |
|
|
pacman -Syu --noconfirm --needed nodejs git \
|
|
base-devel libvncserver libxkbcommon libdrm libva cmake clang
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
- name: Build with gcc
|
|
run: |
|
|
CC=gcc cmake -B gcc-out
|
|
cmake --build gcc-out
|
|
- name: Build with clang
|
|
run: |
|
|
CC=clang cmake -B clang-out
|
|
cmake --build clang-out
|