|
| 1 | +# ----------------------------------------------------------------------------- |
| 2 | +# |
| 3 | +# This file is part of the xPack project (http://xpack.github.io). |
| 4 | +# Copyright (c) 2025 Liviu Ionescu. All rights reserved. |
| 5 | +# |
| 6 | +# Permission to use, copy, modify, and/or distribute this software |
| 7 | +# for any purpose is hereby granted, under the terms of the MIT license. |
| 8 | +# |
| 9 | +# If a copy of the license was not distributed with this file, it can |
| 10 | +# be obtained from https://opensource.org/licenses/MIT. |
| 11 | +# |
| 12 | +# ----------------------------------------------------------------------------- |
| 13 | + |
| 14 | + name: 'Test SourceForge downloads' |
| 15 | + |
| 16 | + on: |
| 17 | + schedule: |
| 18 | + - cron: '1 13 * * 6' # every Sunday |
| 19 | + workflow_dispatch: |
| 20 | + |
| 21 | + jobs: |
| 22 | + test: |
| 23 | + runs-on: ubuntu-latest |
| 24 | + steps: |
| 25 | + - name: Checkout |
| 26 | + uses: actions/checkout@v2 |
| 27 | + with: |
| 28 | + repository: xpack-dev-tools/xbb-helper-xpack |
| 29 | + ref: 'xpack-development' |
| 30 | + |
| 31 | + - name: Show environment |
| 32 | + run: | |
| 33 | + ls -lLA |
| 34 | + env | sort | grep -E '^[^ \t]+=' |
| 35 | +
|
| 36 | + - name: Run test |
| 37 | + run: | |
| 38 | + #!/usr/bin/env bash |
| 39 | + set -e |
| 40 | +
|
| 41 | + # The script is in the xbb-helper-xpack repo. |
| 42 | + source maintenance-scripts/download-sourceforge-source.sh |
| 43 | +
|
| 44 | + date |
| 45 | +
|
| 46 | + # https://sourceforge.net/projects/meson-build-xpack/files/ |
| 47 | + name="meson-build" |
| 48 | + threshold=0 # 16383 # (50%) |
| 49 | +
|
| 50 | + # 2024 |
| 51 | + platforms="win32-x64,linux-x64,linux-arm64,linux-arm,darwin-x64,darwin-arm64" |
| 52 | + download_sourceforge "${name}" "1.6.1-1" ${threshold} "${platforms}" |
| 53 | + download_sourceforge "${name}" "1.5.2-1" ${threshold} "${platforms}" |
| 54 | + download_sourceforge "${name}" "1.4.2-1" ${threshold} "${platforms}" |
| 55 | + download_sourceforge "${name}" "1.3.2-1" ${threshold} "${platforms}" |
| 56 | +
|
| 57 | + # 2023 |
| 58 | + platforms="win32-x64,linux-x64,linux-arm64,linux-arm,darwin-x64,darwin-arm64" |
| 59 | + download_sourceforge "${name}" "1.3.0-1" ${threshold} "${platforms}" |
| 60 | + download_sourceforge "${name}" "1.2.3-1" ${threshold} "${platforms}" |
| 61 | + download_sourceforge "${name}" "1.1.1-1" ${threshold} "${platforms}" |
| 62 | + download_sourceforge "${name}" "1.0.2-1" ${threshold} "${platforms}" |
| 63 | + download_sourceforge "${name}" "0.64.1-1" ${threshold} "${platforms}" |
| 64 | + download_sourceforge "${name}" "0.63.3-1" ${threshold} "${platforms}" |
| 65 | + download_sourceforge "${name}" "0.62.2-1" ${threshold} "${platforms}" |
| 66 | +
|
| 67 | + # 2022 |
| 68 | + platforms="win32-x64,linux-x64,linux-arm64,linux-arm,darwin-x64,darwin-arm64" |
| 69 | + download_sourceforge "${name}" "0.61.5-1" ${threshold} "${platforms}" |
| 70 | + download_sourceforge "${name}" "0.60.3-1" ${threshold} "${platforms}" |
| 71 | +
|
| 72 | + # 2021 |
| 73 | + platforms="win32-x64,win32-ia32,linux-x64,linux-ia32,linux-arm64,linux-arm,darwin-x64" |
| 74 | + download_sourceforge "${name}" "0.59.4-1" ${threshold} "${platforms}" |
| 75 | + download_sourceforge "${name}" "0.58.2-1" ${threshold} "${platforms}" |
| 76 | + download_sourceforge "${name}" "0.57.2-1" ${threshold} "${platforms}" |
| 77 | + download_sourceforge "${name}" "0.56.2-2" ${threshold} "${platforms}" |
| 78 | +
|
| 79 | + # 2020 |
| 80 | + platforms="win32-x64,win32-ia32,linux-x64,linux-ia32,linux-arm64,linux-arm,darwin-x64" |
| 81 | + download_sourceforge "${name}" "0.55.3-2" ${threshold} "${platforms}" |
0 commit comments