Skip to content

Commit

Permalink
ci: Use GitHub Actions
Browse files Browse the repository at this point in the history
Signed-off-by: LIU Hao <lh_mouse@126.com>
  • Loading branch information
lhmouse committed Oct 16, 2023
1 parent 9237001 commit 27de9d5
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: C/C++ CI

on:
push:
branches:
- master
- releases/*

pull_request:
branches:
- master

jobs:
ubuntu-x86-64:
name: Ubuntu cross build (x86_64)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: >-
sudo apt-get install -y --no-install-recommends autoconf automake
libtool make mingw-w64-x86-64-dev mingw-w64-tools gcc-mingw-w64-x86-64
binutils-mingw-w64-x86-64 wine64 wine-binfmt
- name: Run tests
run: CONFIGURE_HOST=x86_64-w64-mingw32-win32 ./ci/build.sh

msys2-ucrt64:
name: MSYS2 native build (x86_64)
runs-on: windows-latest

defaults:
run:
shell: msys2 {0}

steps:
- uses: actions/checkout@v3

- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64

- name: Install dependencies
run: >-
pacman -S --noconfirm autoconf automake libtool gettext make
mingw-w64-ucrt-x86_64-headers-git mingw-w64-ucrt-x86_64-crt-git
mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-binutils
- name: Run tests
run: CONFIGURE_HOST=x86_64-w64-mingw32 ./ci/build.sh

msys2-mingw32:
name: MSYS2 native build (i686)
runs-on: windows-latest

defaults:
run:
shell: msys2 {0}

steps:
- uses: actions/checkout@v3

- uses: msys2/setup-msys2@v2
with:
msystem: MINGW32

- name: Install dependencies
run: >-
pacman -S --noconfirm autoconf automake libtool gettext make
mingw-w64-i686-headers-git mingw-w64-i686-crt-git
mingw-w64-i686-gcc mingw-w64-i686-binutils
- name: Run tests
run: CONFIGURE_HOST=i686-w64-mingw32 ./ci/build.sh

0 comments on commit 27de9d5

Please sign in to comment.