remove cruft

This commit is contained in:
sappho 2025-09-26 12:59:00 -04:00 committed by GitHub
parent 8184ead470
commit 3f8e2159d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,8 +60,6 @@ jobs:
shell: bash
run: |
echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
echo ${{ env.SHORT_SHA }}
- name: Linux dependencies
if: startsWith(runner.os, 'Linux')
@ -73,7 +71,6 @@ jobs:
libc6-dev libc6-dev-i386 linux-libc-dev \
linux-libc-dev:i386 lib32z1-dev \
zlib1g-dev:i386 zlib1g-dev \
tree \
${{ inputs.cc }}
- name: Select clang compiler
@ -112,13 +109,14 @@ jobs:
echo ${ZIP_FILENAME}
echo "ZIP_FILENAME=${ZIP_FILENAME}" >> $GITHUB_ENV
#- name: Upload package
# if: ${{ inputs.upload }}
# uses: actions/upload-artifact@v4
# with:
# name: ${{ inputs.upload-artifact-name }}
# path: build/package
# github upload
- name: Upload release to GitHub
if: ${{ inputs.upload }}
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.upload-artifact-name }}
path: build/package
retention-days: 14
- name: Package release - Windows
if: ${{ startsWith(env.PROJECT_OS, 'windows-latest') }}
@ -135,35 +133,19 @@ jobs:
zip -r "${{ env.ZIP_FILENAME }}" .
cp "${{ env.ZIP_FILENAME }}" "${{ matrix.os }}_${{ matrix.cc }}_${{ env.ZIP_FILENAME }}"
- name: Upload release
# limetech upload
- name: Upload release to limetech
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
shell: bash
working-directory: build/package
run: |
pwd
ls "${{ env.ZIP_FILENAME }}" || true
echo "Begin upload..."
AUTHORIZATION="$(echo -n '${{ secrets.USERNAME }}:${{ secrets.PASSWORD }}' | base64)"
echo "::add-mask::${AUTHORIZATION}"
#run: |
# echo "Begin upload..."
# 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 }}&filename=${{ env.ZIP_FILENAME }}")
# if test ${HTTP_CODE} -ne 200; then
# exit ${HTTP_CODE}
# fi
# echo "Upload successful!"
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
echo "Upload successful!"
#- name: Upload a Build Artifact
# uses: actions/upload-artifact@v4
# with:
# Artifact name
# name: ${{ matrix.os }}_${{ matrix.cc }}_${{ env.ZIP_FILENAME }}
# optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
# path: ${{ github.workspace }}/extension/build/package/${{ matrix.os }}_${{ matrix.cc }}_${{ env.ZIP_FILENAME }}
# The desired behavior if no files are found using the provided path.
# if-no-files-found: error
# Duration after which artifact will expire in days. 0 means using default retention.
# retention-days: 14