记录我尝试使用 act 在 Windows 编译 DexKit 时进行的环境配置
安装 act
cmd
winget install nektos.act
~/.actrc
-P windows-latest=-self-hosted
--artifact-server-path .artifacts
--use-new-action-cache
-s GITHUB_TOKEN=github_pat_xxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
--pull=false
Bash
安装 Git for Windows
cmd
winget install git.git
将 C:\Program Files\Git\bin
放到系统环境变量 PATH
顶部
GCC
windows-2022 的 GCC 二进制来自以下仓库 i686-12.2.0-release-posix-dwarf-ucrt
和 x86_64-12.2.0-release-posix-seh-ucrt
https://github.com/niXman/mingw-builds-binaries/releases/tag/12.2.0-rt_v10-rev2
参见
https://github.com/actions/runner-images/blob/main/images/windows/scripts/build/Install-Mingw64.ps1
https://github.com/actions/runner-images/blob/main/images/windows/toolsets/toolset-2022.json