Build #19
Workflow file for this run
This file contains 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 everything | |
on: | |
workflow_dispatch | |
jobs: | |
build: | |
name: Build | |
strategy: | |
matrix: | |
os: [windows-latest] | |
arch: [amd64, x86] | |
charset: [unicode] | |
include: | |
- os: windows-latest | |
arch: x86 | |
charset: ansi | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Setup mingw32 | |
if: matrix.arch == 'x86' | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: mingw32 | |
location: C:\msys64 | |
update: true | |
install: git mingw-w64-i686-toolchain | |
- name: Setup mingw64 | |
if: matrix.arch == 'amd64' | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: mingw64 | |
location: C:\msys64 | |
update: true | |
install: git mingw-w64-x86_64-toolchain | |
- name: Dump environment | |
shell: cmd | |
run: | | |
echo ---------------------------------------------------- | |
set | |
echo ---------------------------------------------------- | |
dir /OG %SystemDrive%\ | |
echo ---------------------------------------------------- | |
dir /s /b c:\msys64\*.exe | |
echo ---------------------------------------------------- | |
dir /s /b D:\a\_temp\setup-msys2 | |
echo ---------------------------------------------------- | |
echo -- 1 && %SystemDrive%\msys64\mingw32\bin\gcc.exe -v | |
echo -- 2 && %SystemDrive%\msys64\mingw64\bin\gcc.exe -v | |
echo -- 3 && %SystemDrive%\mingw32\bin\gcc.exe -v | |
echo -- 4 && %SystemDrive%\mingw64\bin\gcc.exe -v | |
echo -- 5 && gcc.exe -v | |
echo ---------------------------------------------------- | |
echo --1 && where msys2.exe | |
echo --2 && where msys2.cmd | |
echo --3 && where gcc.exe | |
echo ==================================================== | |
py -0p | |
echo ---------------------------------------------------- | |
py -3 -V | |
py -3 -m pip list | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Build | |
shell: cmd | |
run: | | |
_build.bat mingw release ${{matrix.arch}} ${{matrix.charset}} | |
echo ------------------------------------------------ | |
dir /OG Release-mingw-${{matrix.arch}}-${{matrix.charset}} | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: output-${{matrix.arch}}-${{matrix.charset}} | |
path: Release-mingw-${{matrix.arch}}-${{matrix.charset}}/*.dll | |
retention-days: 7 | |
# if: success() && github.ref == 'refs/heads/master' | |
if: success() | |
- name: Upload curl | |
uses: actions/upload-artifact@v4 | |
with: | |
name: curl-${{matrix.arch}} | |
path: | | |
vcpkg/*-mingw-static/installed/*-mingw-static/tools/curl/curl.exe | |
src/nscurl/curl-ca-bundle.crt | |
retention-days: 7 | |
# if: success() && github.ref == 'refs/heads/master' | |
if: success() && matrix.charset == 'unicode' | |
package: | |
name: Package | |
needs: build | |
runs-on: windows-latest | |
steps: | |
- name: Package | |
shell: cmd | |
run: | | |
echo TODO: build the package |