Skip to content

Commit

Permalink
Add GitHub Actions job for MinGW.
Browse files Browse the repository at this point in the history
  • Loading branch information
the-sun-will-rise-tomorrow committed Feb 24, 2024
1 parent 8a26eaa commit 69b224e
Showing 1 changed file with 74 additions and 54 deletions.
128 changes: 74 additions & 54 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,83 @@
name: Regression Tests
on: [push]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install dependencies
run: sudo apt-get install -y bmake
- name: Configure
run: |
cat /etc/os-release
./configure
- name: Build and test
run: bmake regress
linux_libbsd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install dependencies
run: sudo apt-get install -y bmake pkg-config libbsd-dev
- name: Configure
run: |
cat /etc/os-release
CFLAGS=$(pkg-config --cflags libbsd-overlay) ./configure CPPFLAGS="-DENABLE_SECCOMP_FILTER=1" LDFLAGS=$(pkg-config --libs libbsd-overlay)
- name: Build and test
run: bmake regress
macos:
runs-on: macos-latest
# linux:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@master
# - name: Install dependencies
# run: sudo apt-get install -y bmake
# - name: Configure
# run: |
# cat /etc/os-release
# ./configure
# - name: Build and test
# run: bmake regress
# linux_libbsd:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@master
# - name: Install dependencies
# run: sudo apt-get install -y bmake pkg-config libbsd-dev
# - name: Configure
# run: |
# cat /etc/os-release
# CFLAGS=$(pkg-config --cflags libbsd-overlay) ./configure CPPFLAGS="-DENABLE_SECCOMP_FILTER=1" LDFLAGS=$(pkg-config --libs libbsd-overlay)
# - name: Build and test
# run: bmake regress
# macos:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@master
# - name: Install dependencies
# run: brew install bmake
# - name: Configure
# run: ./configure
# - name: Build and test
# run: bmake regress
# freebsd:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@master
# - name: Test in FreeBSD
# uses: vmactions/freebsd-vm@v1
# with:
# usesh: true
# prepare: pkg install -y curl
# run: |
# freebsd-version
# ./configure
# make regress
# netbsd:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@master
# - name: Test in NetBSD
# uses: vmactions/netbsd-vm@v1
# with:
# usesh: true
# prepare: /usr/sbin/pkg_add curl
# run: |
# uname -a
# ./configure
# make regress
msys2_mingw_x86_64:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
mingw-w64-x86_64-bmake
mingw-w64-x86_64-binutils
mingw-w64-x86_64-gcc
mingw-w64-x86_64-crt
mingw-w64-x86_64-headers
- uses: actions/checkout@master
- name: Install dependencies
run: brew install bmake
- name: Configure
run: ./configure
- name: Build and test
run: bmake regress
freebsd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Test in FreeBSD
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: pkg install -y curl
run: |
freebsd-version
./configure
make regress
netbsd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Test in NetBSD
uses: vmactions/netbsd-vm@v1
with:
usesh: true
prepare: /usr/sbin/pkg_add curl
run: |
uname -a
./configure
make regress

0 comments on commit 69b224e

Please sign in to comment.