From 007eb33acd5e3421b2ecb7ae7b771410ae446d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20Negru=C8=9Biu?= Date: Tue, 4 Jun 2024 14:27:47 +0300 Subject: [PATCH] Workflow experiments --- .github/workflows/build.yml | 50 ++++++++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bfa2c29..519fedd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,7 @@ on: jobs: build: + name: Build strategy: matrix: os: [windows-latest] @@ -20,20 +21,39 @@ jobs: uses: actions/checkout@v4 with: submodules: 'true' - - name: Dump environment + + - 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 + runs-on: windows-latest + steps: + - name: Package shell: cmd run: | - echo ---------------------------------------------------- - set - echo ---------------------------------------------------- - dir /OG %SystemDrive%\ - echo ---------------------------------------------------- - dir /OG %SystemDrive%\msys64\mingw32\bin\gcc.exe -v - dir /OG %SystemDrive%\msys64\mingw64\bin\gcc.exe -v - echo ---------------------------------------------------- - dir py -0p - echo ---------------------------------------------------- - py -3 -V - echo ---------------------------------------------------- - py -3 -m pip list - echo ---------------------------------------------------- + echo TODO: build the package