GitHub Actions CI #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vilistextum CI builds | |
on: | |
push: | |
branches: [ '*' ] | |
tags: [ '*' ] | |
pull_request: | |
branches: [ '*' ] | |
env: | |
CFLAGS: '-O2 -Wall -Wextra -fno-common -Werror=format -Wno-format-truncation -Werror=return-type -Werror=uninitialized -Werror=implicit-function-declaration' | |
LFLAGS: '-fno-common' | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: configure | |
run: "./configure --enable-multibyte" | |
- name: make | |
run: make all | |
- name: install libcheck | |
run: sudo apt-get install check | |
- name: make check | |
run: make check | |
- name: config.log | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: artifacts | |
path: | | |
config.log | |
disable_multibyte: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: configure | |
run: "./configure --disable-multibyte" | |
- name: make | |
run: make all | |
- name: install libcheck | |
run: sudo apt-get install check | |
- name: make check | |
run: make check | |
autogen: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: configure | |
run: "rm -f ./configure && ./autogen.sh && ./configure --enable-multibyte" | |
- name: make | |
run: make all | |
- name: install libcheck | |
run: sudo apt-get install check | |
- name: make check | |
run: make check | |
macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: configure | |
run: "./configure --enable-multibyte" | |
- name: make | |
run: make all |