Skip to content

Commit 03706c2

Browse files
committed
add test-sourceforge-download.yml
1 parent ed1ee21 commit 03706c2

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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: '16 4 * * 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/qemu-riscv-xpack/files/
47+
name="qemu-riscv"
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}" "8.2.6-1" ${threshold} "${platforms}"
53+
download_sourceforge "${name}" "8.2.2-1" ${threshold} "${platforms}"
54+
55+
# 2023
56+
platforms="win32-x64,linux-x64,linux-arm64,linux-arm,darwin-x64,darwin-arm64"
57+
download_sourceforge "${name}" "7.2.5-1" ${threshold} "${platforms}"
58+
download_sourceforge "${name}" "7.2.0-1" ${threshold} "${platforms}"
59+
60+
# 2022
61+
platforms="win32-x64,linux-x64,linux-arm64,linux-arm,darwin-x64,darwin-arm64"
62+
download_sourceforge "${name}" "7.1.0-1" ${threshold} "${platforms}"
63+
download_sourceforge "${name}" "7.0.0-1" ${threshold} "${platforms}"

0 commit comments

Comments
 (0)