From 18999e134c24a6aee268a492f76a779f1ab4d063 Mon Sep 17 00:00:00 2001 From: tupoy-ya Date: Mon, 30 Dec 2024 21:31:12 +0500 Subject: [PATCH] feat(CI): Attempt to make windows artifacts. Untested. --- .github/workflows/build.yml | 18 ++++++++++++++++-- .github/workflows/tests.yml | 4 ++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dd063bf5..66d8638d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,7 +37,7 @@ jobs: sudo aptitude install -y $(echo $DEPS | sed -r 's/[a-z0-9_\-]+/&:i386/g') echo "PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig" >> $GITHUB_ENV - name: Install 64bit dependencies - if: ${{ matrix.bits != '' }} + if: ${{ matrix.bits == '' }} run: | sudo apt-get install -y $DEPS - name: Install Android dependencies @@ -115,4 +115,18 @@ jobs: - name: Configure run: ./waf configure ${{ matrix.bits }} ${{ matrix.flags }} ${{ env.WAF_FLAGS }} - name: Build ${{ matrix.os }} - run: ./waf install \ No newline at end of file + run: ./waf install + + - name: 'Upload build' + uses: actions/upload-artifact@v3 + with: + name: windows${{matrix.bits}}${{matrix.flags}} + path: | + build_hl2 + !build_hl2/**/*.pdb + - name: 'Upload debug symbols' + uses: actions/upload-artifact@v3 + with: + name: windows${{matrix.bits}}${{matrix.flags}} + path: | + build_hl2/**/*.pdb \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 59d0e368..2951bd26 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,7 +22,7 @@ jobs: - name: Install common dependencies run: sudo apt-get update && sudo apt-get install -y g++-multilib gcc-multilib - name: Install 32bit dependencies - if: ${{ matrix.bits == '' && !matrix.android }} + if: ${{ matrix.bits != '' && !matrix.android }} run: | sudo dpkg --add-architecture i386 sudo apt-get update @@ -30,7 +30,7 @@ jobs: sudo aptitude install -y $(echo $DEPS | sed -r 's/[a-z0-9_\-]+/&:i386/g') echo "PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig" >> $GITHUB_ENV - name: Install 64bit dependencies - if: ${{ matrix.bits != '' }} + if: ${{ matrix.bits == '' }} run: | sudo apt-get install -y $DEPS