2023-11-17 14:18:00 -08:00
|
|
|
name: Linux workflow
|
2023-11-17 13:00:57 -08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-11-17 14:18:00 -08:00
|
|
|
name: Build for Linux
|
2023-11-17 13:00:57 -08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install dependencies
|
2023-11-17 13:03:10 -08:00
|
|
|
run: sudo apt update -y && sudo apt install meson build-essential libmagick++-dev -y
|
2023-11-17 13:00:57 -08:00
|
|
|
- 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
|
2023-11-17 14:18:00 -08:00
|
|
|
test:
|
|
|
|
name: Test on Linux
|
|
|
|
runs-on: ubuntu-latest
|
2023-11-17 14:20:54 -08:00
|
|
|
needs: build
|
2023-11-17 14:18:00 -08:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install dependencies
|
|
|
|
run: sudo apt update -y && sudo apt install meson build-essential libmagick++-dev -y
|
|
|
|
- name: Download executable
|
|
|
|
uses: actions/download-artifact@v2.1.1
|
|
|
|
with:
|
|
|
|
name: linux
|
|
|
|
path: b16convert
|
|
|
|
- name: Set up build directory
|
|
|
|
run: meson setup builddir
|
|
|
|
- name: Run test script
|
|
|
|
run: ./test.sh -p b16convert
|
|
|
|
- name: Upload test artifacts
|
|
|
|
uses: actions/upload-artifact@v3.1.3
|
|
|
|
with:
|
|
|
|
name: test-files
|
|
|
|
path: testout
|