Worked on tests and changes for CI tests #60
Workflow file for this run
This file contains hidden or 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
| # 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 | |
| visual_studio_version: 2022 | |
| - os: windows-2022 | |
| visual_studio_version: 2022 | |
| - os: windows-2025 | |
| visual_studio_version: 2026 | |
| 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 ${{ matrix.visual_studio_version }} -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, curl, 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 -j4 > /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 -j4 VERBOSE=1 | |
| build_msys2_mingw: | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - configure_options: '--disable-winapi --enable-wide-character-type' | |
| - configure_options: '--enable-winapi --enable-wide-character-type' | |
| steps: | |
| - name: Configure git | |
| run: git config --global core.autocrlf false | |
| - uses: actions/checkout@v6 | |
| - name: Set up MSYS2 with MinGW-w64 | |
| uses: msys2/setup-msys2@v2 | |
| with: | |
| msystem: MINGW64 | |
| update: true | |
| install: autoconf automake curl git libtool make mingw-w64-x86_64-gcc mingw-w64-x86_64-gettext-runtime mingw-w64-x86_64-gettext-tools 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 -j4 > /dev/null | |
| - name: Run tests | |
| shell: msys2 {0} | |
| run: | | |
| tests/runtests.sh -j4 VERBOSE=1 |