-
-
Notifications
You must be signed in to change notification settings - Fork 61
67 lines (55 loc) · 2.27 KB
/
test-sourceforge-downloads.yml
File metadata and controls
67 lines (55 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# -----------------------------------------------------------------------------
#
# 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.
#
# -----------------------------------------------------------------------------
# https://github.com/xpack-dev-tools/windows-build-tools-xpack/actions/workflows/test-sourceforge-downloads.yml
name: 'Test SourceForge downloads'
on:
schedule:
- cron: '38 14 * * 6' # every Saturday
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://github.com/xpack-dev-tools/windows-build-tools-xpack/tags
# https://sourceforge.net/projects/windows-build-tools-xpack/files/
name="windows-build-tools"
threshold=13107 # (60%, i.e. 32767 * (100-60)/100)
# 2024-2022
platforms="win32-x64"
download_sourceforge "${name}" "4.4.1-3" ${threshold} "${platforms}"
download_sourceforge "${name}" "4.4.1-2" ${threshold} "${platforms}"
download_sourceforge "${name}" "4.4.1-1" ${threshold} "${platforms}"
download_sourceforge "${name}" "4.4.0-1" ${threshold} "${platforms}"
download_sourceforge "${name}" "4.3.0-1" ${threshold} "${platforms}"
# 2021
platforms="win32-x64,win32-ia32"
download_sourceforge "${name}" "4.2.1-3" ${threshold} "${platforms}"
# 2020
platforms="win32-x64,win32-x32"
download_sourceforge "${name}" "2.12.2" ${threshold} "${platforms}"