From fabbaa9164cfc61723b02b08a97cffe0be6edd21 Mon Sep 17 00:00:00 2001 From: Patric Mueller Date: Wed, 20 Mar 2024 10:43:49 +0100 Subject: [PATCH] GitHub Actions CI --- .github/workflows/vilistextum.yml | 87 +++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 .github/workflows/vilistextum.yml diff --git a/.github/workflows/vilistextum.yml b/.github/workflows/vilistextum.yml new file mode 100644 index 0000000..f2727c4 --- /dev/null +++ b/.github/workflows/vilistextum.yml @@ -0,0 +1,87 @@ +name: Vilistextum CI builds + +on: + push: + branches: [ '*' ] + tags: [ '*' ] + pull_request: + branches: [ '*' ] + +env: + CFLAGS: '-O2 -Wall -Wextra -fno-common -Werror=format -Wno-format-truncation -Werror=implicit-function-declaration -Werror=return-type -Werror=strict-prototypes -Werror=uninitialized' + 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