Skip to content

add get_username() #660

add get_username()

add get_username() #660

Workflow file for this run

name: ci_windows
env:
CTEST_NO_TESTS_ACTION: error
CTEST_PARALLEL_LEVEL: 0
CMAKE_BUILD_PARALLEL_LEVEL: 4
CMAKE_INSTALL_PREFIX: libs
CMAKE_PREFIX_PATH: libs
on:
push:
paths:
- "**.c"
- "**.h"
- "**.cpp"
- "**.f90"
- "**/CMakeLists.txt"
- "**.cmake"
- ".github/workflows/ci_windows.yml"
- "!concepts/**"
- "!memcheck.cmake"
jobs:
msvc:
runs-on: windows-latest
timeout-minutes: 15
# github actions generally broken for shared lib, even when exe in cwd
steps:
- uses: actions/checkout@v4
- name: Configure
run: cmake -B build -Dffilesystem_fortran:BOOL=no
- name: build Release
run: cmake --build build --config Release
- name: test Release
run: ctest --test-dir build -C Release -V
- name: Install Release
run: cmake --install build --config Release
- name: example configure
run: cmake -S example -B example/build
- name: example build
run: cmake --build example/build --config Release
- name: example test
run: ctest --test-dir example/build -C Release -V
windows-gcc:
runs-on: windows-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
cpp: [false, true]
# github actions generally broken for shared lib, even when exe in cwd
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
mingw-w64-x86_64-ninja
mingw-w64-x86_64-gcc-fortran
- name: Put MSYS2_MinGW64 on PATH
run: echo "${{ runner.temp }}/msys64/mingw64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- uses: actions/checkout@v4
- name: config cpp=${{ matrix.cpp }}
run: >-
cmake --preset multi
-Dffilesystem_cpp:BOOL=${{ matrix.cpp }}
- name: print config log
if: ${{ failure() }}
run: cat build/CMakeFiles/CMakeConfigureLog.yaml
- name: Debug workflow
run: cmake --workflow --preset debug
- name: Release workflow
run: cmake --workflow --preset release
- name: install package
run: cmake --install build
- name: example workflow
run: cmake -G Ninja -S example -B example/build
- run: cmake --build example/build
- run: ctest --test-dir example/build -V
# Github Actions Exit code 0xc0000139 -- does not happen on real Windows PCs.