Looks like the dos2unix package contains unix2dos? #26
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: Continuous Integration | |
on: [push, pull_request] | |
jobs: | |
build_and_coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: configure | |
run: | | |
LDFLAGS="$CFLAGS" ./autogen.sh \ | |
--enable-coverage | |
- name: make | |
run: make -j | |
- name: make check | |
run: | | |
make -j check || (cat test/test-suite.log; false) | |
- name: Generate coverage reports | |
run: | | |
./gencov lib/*.c src/*.c | |
mkdir artifacts | |
tar cf - lib/*.gcov src/*.gcov | tar -C artifacts -xf - | |
- name: Upload coverage-annotated source files | |
uses: actions/upload-artifact@v1 | |
with: | |
path: "artifacts" | |
name: coverage_reports | |
ubsan_build: | |
runs-on: ubuntu-latest | |
env: | |
CC: clang | |
# TODO: Add -fsanitize=address and memory too. | |
CFLAGS: "-fsanitize=undefined | |
-fno-omit-frame-pointer | |
-fno-sanitize-recover=all | |
-fno-sanitize=shift-base" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sudo apt -q install valgrind | |
- name: configure | |
run: | | |
LDFLAGS="$CFLAGS" ./autogen.sh | |
- name: make check | |
run: | | |
make -j check || (cat test/test-suite.log; false) | |
windows_build: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
install: autoconf automake libtool gcc make groff zip dos2unix | |
- name: Find Git version | |
id: version | |
run: | | |
export VERSION=$(git rev-parse --short HEAD) | |
echo "VERSION=$VERSION-win32" >> $GITHUB_OUTPUT | |
- name: configure | |
run: ./autogen.sh --disable-shared | |
- name: make | |
run: make -j | |
# TODO: Tests are not currently run on Windows | |
- name: Make windows package | |
run: | | |
cd pkg/win32 | |
make | |
- name: Upload build | |
uses: actions/upload-artifact@v1 | |
with: | |
path: "pkg/win32/staging" | |
name: lhasa-${{steps.version.outputs.VERSION}} |