From 6b361db6de7cc8674e0065fffa4c3d26d21164cf Mon Sep 17 00:00:00 2001 From: sappho Date: Thu, 2 May 2024 18:45:04 -0400 Subject: [PATCH] =?UTF-8?q?Update=20ci,=20only=20run=20ubuntu-latest=20/?= =?UTF-8?q?=20windows-latest,=20but=20lock=20them=20to=20=E2=80=A6=20(#26)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update ci, only run ubuntu-latest / windows-latest, but lock them to specific versions, and only upload when we're on master --- .github/workflows/ci.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c2c104..26be303 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,30 +2,24 @@ name: Extension builder on: push: - branches: [ action, master ] + branches: [ master ] pull_request: - branches: [ action, master ] + branches: [ master ] jobs: build: strategy: matrix: - os: [ubuntu-20.04, windows-2019, ubuntu-latest, windows-latest] + os: [ubuntu-22.04, windows-2022] include: - - os: ubuntu-20.04 - cc: clang-10 - cxx: clang++-10 - - os: windows-2019 - cc: msvc - - os: ubuntu-latest + - os: ubuntu-22.04 cc: clang cxx: clang++ - - os: windows-latest + - os: windows-2022 cc: msvc fail-fast: false - name: ${{ matrix.os }} - ${{ matrix.cc }} runs-on: ${{ matrix.os }} @@ -155,7 +149,7 @@ jobs: cp "${{ env.ZIP_FILENAME }}" "${{ matrix.os }}_${{ matrix.cc }}_${{ env.ZIP_FILENAME }}" - name: Upload release - if: github.event_name == 'push' && github.ref == 'refs/heads/action' && (startsWith(matrix.os, 'ubuntu-latest') || startsWith(matrix.os, 'windows-latest')) + if: github.event_name == 'push' && github.ref == 'refs/heads/master' shell: bash working-directory: extension/build/package run: | @@ -163,7 +157,7 @@ jobs: AUTHORIZATION="$(echo -n '${{ secrets.USERNAME }}:${{ secrets.PASSWORD }}' | base64)" echo "::add-mask::${AUTHORIZATION}" - HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.ZIP_FILENAME }}" "https://builds.limetech.io/upload.php?project=${{ env.PROJECT }}&branch=action&filename=${{ env.ZIP_FILENAME }}") + HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.ZIP_FILENAME }}" "https://builds.limetech.io/upload.php?project=${{ env.PROJECT }}&filename=${{ env.ZIP_FILENAME }}") if test ${HTTP_CODE} -ne 200; then exit ${HTTP_CODE} fi