Set up CI
This commit is contained in:
parent
af10d2fb3c
commit
66f2b9b1d4
2 changed files with 57 additions and 0 deletions
26
.github/workflows/linux.yml
vendored
Normal file
26
.github/workflows/linux.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: Build for Linux
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install dependencies
|
||||
run: apt update -y && apt install meson build-essential libmagick++-dev
|
||||
- name: Set up build directory
|
||||
run: meson setup builddir
|
||||
- name: Build
|
||||
run: meson compile -C builddir
|
||||
- name: Upload built executable
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: linux
|
||||
path: builddir/b16converter
|
31
.github/workflows/win.yml
vendored
Normal file
31
.github/workflows/win.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
name: Build for Windows using MSys2
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: windows-latest
|
||||
defaults:
|
||||
run:
|
||||
shell: msys2 {0}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: msys2/setup-msys@v2
|
||||
with:
|
||||
msystem: UCRT64
|
||||
update: true
|
||||
install: git mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-imagemagick mingw-w64-ucrt-x86_64-meson
|
||||
- name: Set up build directory
|
||||
run: meson setup builddir
|
||||
- name: Build
|
||||
run: meson compile -C builddir
|
||||
- name: Upload built executable
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: windows
|
||||
path: builddir/b16converter.exe
|
Loading…
Reference in a new issue