Skip to content

Test SourceForge downloads #11

Test SourceForge downloads

Test SourceForge downloads #11

# -----------------------------------------------------------------------------
#
# This file is part of the xPack project (http://xpack.github.io).
# Copyright (c) 2025 Liviu Ionescu. All rights reserved.
#
# Permission to use, copy, modify, and/or distribute this software
# for any purpose is hereby granted, under the terms of the MIT license.
#
# If a copy of the license was not distributed with this file, it can
# be obtained from https://opensource.org/licenses/MIT.
#
# -----------------------------------------------------------------------------
name: 'Test SourceForge downloads'
on:
schedule:
- cron: '37 13 * * 6' # every Sunday
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
repository: xpack-dev-tools/xbb-helper-xpack
ref: 'xpack-development'
- name: Show environment
run: |
ls -lLA
env | sort | grep -E '^[^ \t]+='
- name: Run test
run: |
#!/usr/bin/env bash
set -e
# The script is in the xbb-helper-xpack repo.
source maintenance-scripts/download-sourceforge-source.sh
date
# https://sourceforge.net/projects/clang-xpack/files/
name="clang"
threshold=16383 # (50%)
# 2025
platforms="win32-x64,linux-x64,linux-arm64,darwin-x64,darwin-arm64"
# 2024
platforms="win32-x64,linux-x64,linux-arm64,linux-arm,darwin-x64,darwin-arm64"
download_sourceforge "${name}" "19.1.7-1" ${threshold} "${platforms}"
download_sourceforge "${name}" "18.1.8-2" ${threshold} "${platforms}"
download_sourceforge "${name}" "17.0.6-3" ${threshold} "${platforms}"
download_sourceforge "${name}" "16.0.6-1" ${threshold} "${platforms}"
download_sourceforge "${name}" "15.0.7-4" ${threshold} "${platforms}"
download_sourceforge "${name}" "14.0.6-2" ${threshold} "${platforms}"
download_sourceforge "${name}" "13.0.1-1" ${threshold} "${platforms}"
download_sourceforge "${name}" "12.0.1-2" ${threshold} "${platforms}"