mirror of
https://gitea.com/gitea/act_runner
synced 2026-11-03 10:57:22 +01:00
Adds a weekly and on-demand workflow that runs the cross-compiled tests on Windows Server 2025 Core in a [dockur/windows](https://github.com/dockur/windows) QEMU VM, and fixes the Windows bugs it found in host and UNC paths, env handling, shell quoting, post-task scripts, health checks, checkout, action symlinks, step summaries, Git client certificates and docker mode from a Windows host. Host-mode steps now emit UTF-8, `bash` falls back to Git's bash instead of the WSL launcher, the runner can run as a native Windows service, steps can keep background helpers with `RUNNER_TRACKING_ID`, and Windows arm64 binaries are released. Fixes: https://gitea.com/gitea/runner/issues/1339 Fixes: https://gitea.com/gitea/runner/issues/637 Fixes: https://gitea.com/gitea/runner/issues/1172 Fixes: https://gitea.com/gitea/runner/issues/347 Reviewed-on: https://gitea.com/gitea/runner/pulls/1348 Reviewed-by: bircni <bircni@icloud.com>
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
on:
|
|
push:
|
|
jobs:
|
|
test:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- run: |
|
|
echo $env:GITHUB_ENV
|
|
echo "key=val" > $env:GITHUB_ENV
|
|
echo "key2<<EOF" >> $env:GITHUB_ENV
|
|
echo "line1" >> $env:GITHUB_ENV
|
|
echo "line2" >> $env:GITHUB_ENV
|
|
echo "EOF" >> $env:GITHUB_ENV
|
|
cat $env:GITHUB_ENV
|
|
- run: |
|
|
ls env:
|
|
if($env:key -ne 'val') {
|
|
echo "Unexpected value for `$env:key: $env:key"
|
|
exit 1
|
|
}
|
|
if($env:key2 -ne "line1`r`nline2") {
|
|
echo "Unexpected value for `$env:key2: $env:key2"
|
|
exit 1
|
|
}
|
|
- run: |
|
|
echo $env:GITHUB_ENV
|
|
echo "KEY=test" > $env:GITHUB_ENV
|
|
echo "Key=expected" > $env:GITHUB_ENV
|
|
- name: Assert GITHUB_ENV is merged case insensitive
|
|
run: exit 1
|
|
if: env.KEY != 'expected' || env.Key != 'expected' || env.key != 'expected'
|
|
- name: Assert step env is merged case insensitive
|
|
run: exit 1
|
|
if: env.KEY != 'n/a' || env.Key != 'n/a' || env.key != 'n/a'
|
|
env:
|
|
KeY: 'n/a'
|
|
- uses: actions/checkout@v3
|
|
- uses: ./windows-add-env
|
|
- name: Assert composite env is merged case insensitive
|
|
run: exit 1
|
|
if: env.KEY != 'n/a' || env.Key != 'n/a' || env.key != 'n/a' |