From f6310cdc916d549ccf263a6eea07e8da962cc921 Mon Sep 17 00:00:00 2001 From: Jerry Date: Mon, 25 Mar 2024 20:02:49 +0800 Subject: [PATCH] switch to gitea actions --- .drone.yml | 21 --------------------- .forgejo/workflows/default.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 21 deletions(-) delete mode 100644 .drone.yml create mode 100644 .forgejo/workflows/default.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index cc2f441..0000000 --- a/.drone.yml +++ /dev/null @@ -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 diff --git a/.forgejo/workflows/default.yml b/.forgejo/workflows/default.yml new file mode 100644 index 0000000..be7d088 --- /dev/null +++ b/.forgejo/workflows/default.yml @@ -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