Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
tsjensen committed Dec 25, 2023
1 parent 297a6ef commit eb0cf3f
Showing 1 changed file with 132 additions and 66 deletions.
198 changes: 132 additions & 66 deletions .github/workflows/boxes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,81 +20,147 @@ env:
TERM: xterm-color

jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: add-packages
run: |
sudo apt-get update -y
sudo apt-get install -y git flex bison libunistring-dev libpcre2-dev libncurses-dev diffutils vim-common lcov libcmocka-dev
- name: make cov
run: make cov

- name: Run white-box tests
run: make utest

- name: Run sunny-day tests
run: make covtest-sunny

- name: Run black-box tests
run: make covtest

- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: out/lcov-total.info
format: lcov
flag-name: run-linux
parallel: true

build-macos:
runs-on: macos-latest
# build-linux:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4

# - name: add-packages
# run: |
# sudo apt-get update -y
# sudo apt-get install -y git flex bison libunistring-dev libpcre2-dev libncurses-dev diffutils vim-common lcov libcmocka-dev

# - name: make cov
# run: make cov

# - name: Run white-box tests
# run: make utest

# - name: Run sunny-day tests
# run: make covtest-sunny

# - name: Run black-box tests
# run: make covtest

# - name: Coveralls
# uses: coverallsapp/github-action@v2
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# file: out/lcov-total.info
# format: lcov
# flag-name: run-linux
# parallel: true

build-windows:
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
arch:
- amd64
- i386
include:
- arch: amd64
msystem: UCRT64
- arch: i386
msystem: MINGW32
env:
BX_LEX: /usr/local/opt/flex/bin/flex
BX_YACC: /usr/local/opt/bison/bin/bison
SUFFIX: windows-${{ matrix.arch }}
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4

# We need to use GNU grep, sed, and xargs on macOS
- name: add-packages
run: |
brew install flex bison diffutils lcov cmocka grep gnu-sed findutils
echo '/usr/local/opt/grep/libexec/gnubin' >> $GITHUB_PATH
echo '/usr/local/opt/gnu-sed/libexec/gnubin' >> $GITHUB_PATH
echo '/usr/local/opt/findutils/libexec/gnubin' >> $GITHUB_PATH
uses: msys2/setup-msys2@v2
with:
update: true
msystem: ${{ matrix.msystem }}
install: >-
base-devel
bison
#libcmocka-dev
diffutils
dos2unix
flex
git
lcov
libiconv
libunistring
ncurses
pcre2
unzip
vim
zip
pacboy: >-
cmocka:p
- name: make cov
run: make cov

- name: Run white-box tests
run: make utest

- name: Run sunny-day tests
run: make covtest-sunny

- name: Run black-box tests
run: make covtest

- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: out/lcov-total.info
format: lcov
flag-name: run-macos
parallel: true

finish:
needs: [build-linux, build-macos]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "run-linux,run-macos"
# - name: Run sunny-day tests
# run: make covtest-sunny

# - name: Run black-box tests
# run: make covtest

# - name: Coveralls
# uses: coverallsapp/github-action@v2
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# file: out/lcov-total.info
# format: lcov
# flag-name: run-windows
# parallel: true

# build-macos:
# runs-on: macos-latest
# env:
# BX_LEX: /usr/local/opt/flex/bin/flex
# BX_YACC: /usr/local/opt/bison/bin/bison
# steps:
# - uses: actions/checkout@v4

# # We need to use GNU grep, sed, and xargs on macOS
# - name: add-packages
# run: |
# brew install flex bison diffutils lcov cmocka grep gnu-sed findutils
# echo '/usr/local/opt/grep/libexec/gnubin' >> $GITHUB_PATH
# echo '/usr/local/opt/gnu-sed/libexec/gnubin' >> $GITHUB_PATH
# echo '/usr/local/opt/findutils/libexec/gnubin' >> $GITHUB_PATH

# - name: make cov
# run: make cov

# - name: Run white-box tests
# run: make utest

# - name: Run sunny-day tests
# run: make covtest-sunny

# - name: Run black-box tests
# run: make covtest

# - name: Coveralls
# uses: coverallsapp/github-action@v2
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# file: out/lcov-total.info
# format: lcov
# flag-name: run-macos
# parallel: true

# finish:
# needs: [build-linux, build-macos]
# if: ${{ always() }}
# runs-on: ubuntu-latest
# steps:
# - name: Coveralls Finished
# uses: coverallsapp/github-action@v2
# with:
# parallel-finished: true
# carryforward: "run-linux,run-macos"

0 comments on commit eb0cf3f

Please sign in to comment.