Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
f6310cdc91 |
2 changed files with 27 additions and 21 deletions
21
.drone.yml
21
.drone.yml
|
@ -1,21 +0,0 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: archlinux:latest
|
||||
commands:
|
||||
- pacman -Syu --noconfirm --needed base-devel libvncserver libxkbcommon libdrm libva git cmake clang
|
||||
- export CFLAGS="-pipe -fno-plt -fexceptions -fstack-clash-protection -fcf-protection -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security"
|
||||
- CC=gcc cmake -B gcc-out
|
||||
- cmake --build gcc-out
|
||||
- CC=clang cmake -B clang-out
|
||||
- cmake --build clang-out
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- dev
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
27
.forgejo/workflows/default.yml
Normal file
27
.forgejo/workflows/default.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
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
|
Loading…
Reference in a new issue