Skip to content

Worked on tests and changes for CI tests #12

Worked on tests and changes for CI tests

Worked on tests and changes for CI tests #12

Workflow file for this run

# Build from source on Windows.
name: build_windows
on:
pull_request:
push:
permissions: read-all
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-11-arm
- os: windows-2022
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install build dependencies
run: |
git clone https://github.com/libyal/vstools.git ..\vstools
- name: Download test data
run: |
if (Test-Path .\synctestdata.ps1) { .\synctestdata.ps1 }
- name: Build from source
run: |
.\synclibs.ps1 -UseHead
.\autogen.ps1
.\build.ps1 -VisualStudioVersion 2022 -Configuration Release -Platform x64 -PythonPath ${{ env.pythonLocation }} -VSToolsOptions "--extend-with-x64 --no-python-dll"
- name: Run tests
run: |
.\runtests.ps1
build_cygwin:
runs-on: windows-latest
strategy:
matrix:
include:
- configure_options: ''
steps:
- name: Configure git
run: git config --global core.autocrlf false
- uses: actions/checkout@v6
- name: Install Cygwin and build dependencies
uses: cygwin/cygwin-install-action@v6
with:
packages: autoconf, automake, binutils, gcc-core, gettext-devel, git, libtool, make, pkg-config
platform: x86_64
add-to-path: true
- name: Download test data
shell: bash --login -e -o pipefail -o igncr {0}
working-directory: ${{ github.workspace }}
env:
CHERE_INVOKING: 1
run: |
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
- name: Build from source
shell: bash --login -e -o pipefail -o igncr {0}
working-directory: ${{ github.workspace }}
env:
CHERE_INVOKING: 1
CONFIGURE_OPTIONS: ${{ matrix.configure_options }}
LD: ld
run: |
./synclibs.sh --use-head
./autogen.sh
./configure ${CONFIGURE_OPTIONS}
make > /dev/null
- name: Run tests
shell: bash --login -e -o pipefail -o igncr {0}
working-directory: ${{ github.workspace }}
env:
CHERE_INVOKING: 1
run: |
tests/runtests.sh
build_msys2_mingw:
runs-on: windows-latest
strategy:
matrix:
include:
- configure_options: '--disable-winapi'
- configure_options: '--enable-winapi'
steps:
- uses: actions/checkout@v6
- name: Set up MSYS2 with MinGW-w64
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: autoconf automake gettext gettext-devel git libtool make mingw-w64-x86_64-gcc pkg-config
- name: Download test data
shell: msys2 {0}
run: |
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
- name: Build from source
shell: msys2 {0}
env:
CONFIGURE_OPTIONS: ${{ matrix.configure_options }}
run: |
./synclibs.sh --use-head
./autogen.sh
./configure ${CONFIGURE_OPTIONS}
make > /dev/null
- name: Run tests
shell: msys2 {0}
run: |
tests/runtests.sh