Skip to content

Don't compile util/symlinks on Windows #161

Don't compile util/symlinks on Windows

Don't compile util/symlinks on Windows #161

Workflow file for this run

name: CI
on: [push]
env:
DEF_CFLAGS: -O2 -g -Wall
jobs:
windows-msys2-build:
name: Build mke2fs on Windows with ${{matrix.sys}}
runs-on: windows-latest
strategy:
matrix:
include:
- { sys: mingw32, env: i686 }
- { sys: mingw64, env: x86_64 }
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
update: true
install: >
make
mingw-w64-${{matrix.env}}-cc
# For now the only parts that actually build for Windows are mke2fs and its
# dependencies: all libraries except libss. The build system doesn't want
# to build just those parts, though, so do it one step at a time...
- run: ./configure CFLAGS="$DEF_CFLAGS"
- run: make -j8 top-deps V=1 CFLAGS_WARN="-Werror"
- run: make -j8 -C lib/et/ all V=1 CFLAGS_WARN="-Werror"
- run: make -j8 -C lib/uuid/ all V=1 CFLAGS_WARN="-Werror"
- run: make -j8 -C lib/blkid/ all V=1 CFLAGS_WARN="-Werror"
- run: make -j8 -C lib/ext2fs/ all V=1 CFLAGS_WARN="-Werror"
- run: make -j8 -C lib/support/ all V=1 CFLAGS_WARN="-Werror"
- run: make -j8 -C lib/e2p/ all V=1 CFLAGS_WARN="-Werror"
- run: make -j8 -C misc/ mke2fs V=1 CFLAGS_WARN="-Werror"
- run: misc/mke2fs.exe -T ext4 image.ext4 128M
- uses: actions/upload-artifact@v4
with:
name: windows-${{matrix.env}}-config.h
path: lib/config.h