TO-DROP: trigger also on tmp
#2913
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
name: 'build-test' | |
on: # rebuild any PRs and main branch changes | |
pull_request: | |
push: | |
tags: | |
- 'v[0-9]*' | |
branches: | |
- main | |
- 'v[0-9]*' | |
- tmp | |
jobs: | |
test: # make sure the action works on a clean machine without building | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run this Action in-place | |
uses: ./ | |
- name: Verify that the Bash of Git for Windows' SDK is used | |
shell: bash | |
run: | | |
set -ex | |
echo "PATH: $PATH" >&2 | |
test ! -e .tmp | |
echo "This is the MSYS2 pseudo root: $(cygpath -aw /)" | |
test "gcc is /mingw64/bin/gcc" = "$(type gcc)" | |
test "prove is /usr/bin/core_perl/prove" = "$(type prove)" | |
prove -V | |
printf '%s\n' \ | |
"#include <stdio.h>" \ | |
'' \ | |
'int main()' \ | |
'{' \ | |
' printf("Hello, world!\n");' \ | |
' return 0;' \ | |
'}' >hello-world.c | |
gcc -o hello-world.exe hello-world.c | |
hello="$(./hello-world.exe)" | |
test 'Hello, world!' = "$hello" | |
# Verify that the locale is set, enabling `grep -P` to work | |
test 123 = "$(printf '1248\n123\n' | grep -P '2(?!4)')" | |
# Verify that /dev/fd/<pid> works | |
test hello = "$(cat <(echo hello))" |