feat: refactor virtualisation accelerators #181
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test quickget 🧪" | |
on: | |
workflow_dispatch: | |
push: | |
branches: '**' | |
paths: [ quickget ] | |
pull_request: | |
branches: '**' | |
paths: [ quickget ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
install-deps: | |
name: "Install dependencies 📦" | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: "Install curl and qemu-utils 🚀" | |
run: | | |
sudo apt-get -y update | |
sudo apt-get -y install curl qemu-utils | |
list-all-supported: | |
needs: [install-deps] | |
name: "List all supported OS 📝" | |
runs-on: ubuntu-22.04 | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
- name: "List all supported OS variants" | |
run: | | |
mkdir -p results | |
./quickget --list | tee results/supported.txt | |
echo -e "\nResults:" | |
echo "- All supported OS variants: $(wc -l results/supported.txt | cut -d' ' -f 1)" | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: supported | |
path: results/supported.txt | |
list-all-urls: | |
needs: [install-deps, list-all-supported] | |
name: "List all URLs 🔗" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "quickget --url" | |
run: | | |
export TERM=xterm-256color | |
mkdir -p results | |
./quickget --url | tee results/urls.txt | |
- uses: actions/download-artifact@v4 | |
with: | |
path: results | |
merge-multiple: true | |
- name: "Show differences ⚖️" | |
run: | | |
echo -e "\nResults:" | |
echo -e "List All URLs:\t$(grep -c http results/urls.txt)" | |
echo -e "OS Info URLs:\t$(wc -l results/supported.txt | cut -d' ' -f 1)" | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: urls | |
path: results/urls.txt | |
check-all-urls: | |
needs: [install-deps] | |
name: "Check all image URLs 💿️" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "quickget --check" | |
run: | | |
export TERM=xterm-256color | |
mkdir -p results | |
./quickget --check | tee results/checks.txt | |
WINDOWS=$(grep -c "windows-" results/checks.txt) | |
FAILED=$(grep -c ^FAIL results/checks.txt) | |
SKIPPED=$(grep -c ^SKIP results/checks.txt) | |
PASSED=$(grep -c ^PASS results/checks.txt) | |
CHECKED=$((FAILED + SKIPPED + PASSED)) | |
echo -e "\nResults:" | |
echo -e "- PASSED:\t${PASSED}" | |
echo -e "- SKIPPED:\t${SKIPPED}\t(of which ${WINDOWS} are Windows)" | |
echo -e "- FAILED:\t${FAILED}\n" | |
grep ^FAIL results/checks.txt | tee results/failed.txt | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: checks | |
path: results/checks.txt | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: failed | |
path: results/failed.txt | |
upload-artifacts: | |
needs: [list-all-urls, check-all-urls] | |
name: "Uploading artifacts" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
path: results | |
merge-multiple: true | |
- name: "List results" | |
run: | | |
ls -R results/ | |
- uses: actions/upload-artifact@v4 | |
with: | |
overwrite: true | |
name: results | |
path: results/ |