feat: add support for running quickemu on macOS hosts #201
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: | |
quickget-tests: | |
name: "Run quickget tests 👟" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Install dependencies 📦️" | |
run: | | |
sudo apt-get -y update | |
sudo apt-get -y install curl qemu-utils | |
- name: "List OS variants 📃" | |
run: | | |
mkdir -p results | |
./quickget --list | tail -n +2 | tee results/list.txt | |
- name: "Check OS downloads 💿️" | |
run: | | |
mkdir -p results | |
./quickget --check | tee results/check.txt | |
- name: "Display results 📊" | |
run: | | |
WINDOWS=$(grep -c "windows-" results/check.txt) | |
FAILED=$(grep -c ^FAIL results/check.txt) | |
SKIPPED=$(grep -c ^SKIP results/check.txt) | |
PASSED=$(grep -c ^PASS results/check.txt) | |
CHECKED=$((WINDOWS + FAILED + SKIPPED + PASSED)) | |
echo -e "\nResults:" | |
echo -e "- CHECKED:\t${CHECKED}" | |
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/check.txt | tee results/failed.txt | |
VARIATIONS=$(wc -l results/list.txt | cut -d' ' -f 1) | |
DOWNLOADS=$(wc -l results/check.txt | cut -d' ' -f 1) | |
echo | |
echo "Compare OS variations with downloads:" | |
echo -e "- Variations:\t${VARIATIONS}" | |
echo -e "- Downloads:\t${DOWNLOADS}" |