Skip to content

Commit b29ecbb

Browse files
committed
GitHub Actions: Add Functional Testing
1 parent 023a09a commit b29ecbb

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/aria2-builer.yml

+24-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
jobs:
2121
build:
2222
runs-on: ubuntu-latest
23+
timeout-minutes: 30
2324
strategy:
2425
fail-fast: false
2526
matrix:
@@ -40,6 +41,9 @@ jobs:
4041

4142
steps:
4243

44+
- name: Install QEMU
45+
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
46+
4347
- name: Checkout
4448
uses: actions/checkout@v2
4549

@@ -55,8 +59,27 @@ jobs:
5559
--platform=local \
5660
-o ./output .
5761
62+
- name: Check Version
63+
run: |
64+
tar xzvf ./output/aria2*.tar.gz
65+
file aria2c 2>&1 | tee ./output/file-type-${{ matrix.PLATFORMS }}.txt
66+
./aria2c -v 2>&1 | tee ./output/version-${{ matrix.PLATFORMS }}.txt
67+
5868
- name: Upload artifact
59-
uses: actions/upload-artifact@v1
69+
uses: actions/upload-artifact@v2
6070
with:
6171
name: aria2-${{ matrix.PLATFORMS }}
6272
path: output
73+
74+
- name: Functional Testing
75+
run: |
76+
./aria2c https://raw.githubusercontent.com/P3TERX/aria2.conf/master/dht.dat
77+
./aria2c https://raw.githubusercontent.com/P3TERX/aria2.conf/master/dht6.dat
78+
./aria2c \
79+
--seed-time=0 \
80+
--enable-dht6=true \
81+
--dht-file-path="$PWD/dht.dat" \
82+
--dht-file-path6="$PWD/dht6.dat" \
83+
--dht-entry-point='dht.transmissionbt.com:6881' \
84+
--dht-entry-point6='dht.transmissionbt.com:6881' \
85+
"$(curl -fsSL https://ubuntu.com/download/alternative-downloads | grep -o 'https.*server.*torrent' | head -1)"

0 commit comments

Comments
 (0)