Update curl, switch to openssl default (#15) (push) #510
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: main | |
on: | |
push: | |
paths: | |
- 'mingw-w64-*/*' | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
remove_package: | |
description: Package name (without the mingw-w64- prefix) to remove | |
required: true | |
run-name: ${{ github.event.pull_request.title || github.event.head_commit.message || format('{0} [removal] ', inputs.remove_package) }} (${{github.event_name}}) | |
jobs: | |
build: | |
timeout-minutes: 600 | |
strategy: | |
fail-fast: true | |
matrix: | |
include: [ | |
{ msystem: ucrt64, runner: windows-2022 }, | |
{ msystem: clang64, runner: windows-2022 }, | |
{ msystem: clangarm64, runner: 'self-hosted' } | |
] | |
name: ${{ matrix.msystem }} | |
runs-on: ${{ github.event.inputs.remove_package && 'windows-2022' || matrix.runner }} | |
env: | |
BUILD_URL: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} | |
MINGW_ARCH: ${{ matrix.msystem }} | |
PACMAN_REPOSITORY: ${{ matrix.msystem }}-libs | |
steps: | |
- name: Kill old processes | |
timeout-minutes: 2 | |
run: | | |
for /l %%x in (1, 1, 5) do ( | |
taskkill /IM gpg.exe /F | |
taskkill /IM gpg-agent.exe /F | |
taskkill /IM pacman.exe /F | |
taskkill /IM bash.exe /F | |
taskkill /IM sh.exe /F | |
taskkill /F /FI "MODULES eq msys-2.0.dll" | |
) | |
exit 0 | |
shell: cmd | |
- uses: msys2/setup-msys2@v2 | |
timeout-minutes: 3 | |
with: | |
msystem: ${{ matrix.msystem }} | |
install: git patch make unzip pactoys | |
cache: false | |
- name: Cleanup old stuff | |
run: rm -Rf */pkg */src | |
shell: msys2 {0} | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: CI-Build | |
run: ./ci-build.sh | |
if: success() && ! github.event.inputs.remove_package | |
shell: msys2 {0} | |
- name: Remove packages | |
run: ./ci-remove.sh ${{ github.event.inputs.remove_package }} | |
if: github.event.inputs.remove_package | |
shell: msys2 {0} | |
- name: "Upload binary package" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.msystem }}-libs | |
path: artifacts/ | |
deploy: | |
name: Deploy to staging server | |
runs-on: ubuntu-22.04 | |
needs: [build] | |
if: success() && github.ref == 'refs/heads/master' | |
steps: | |
- name: Get artifacts for deployment | |
uses: actions/download-artifact@v4 | |
- id: deployment | |
name: Uploading files | |
run: | | |
ls -ltrR | |
eval $(ssh-agent -s) | |
ssh-add <(echo "$STAGINGKEY") | |
echo 'put -pr .' | sftp -oStrictHostKeyChecking=no "${STAGINGUSER}@ftp.opencpu.org:/msys2" | |
exit ${PIPESTATUS[1]} | |
env: | |
STAGINGUSER: ${{ secrets.STAGINGUSER }} | |
STAGINGKEY: ${{ secrets.STAGINGKEY }} |