Skip to content

Commit

Permalink
xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed Jan 26, 2025
1 parent 8c5280c commit ce0d56a
Showing 1 changed file with 36 additions and 9 deletions.
45 changes: 36 additions & 9 deletions .github/workflows/test-distros.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,56 @@ jobs:
runs-on: ubuntu-22.04
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
supported: ${{ steps.list-supported.outputs.supported }}

steps:
- name: "Check out repository"
uses: actions/checkout@v4

- name: "Generate Matrix"
id: set-matrix
- name: "Install dependencies 📦️"
run: |
sudo apt-get -y update 2> /dev/null || apt-get -y update
sudo apt-get -y install awk curl jq qemu-utils zsync 2> /dev/null || apt-get -y install awk curl jq qemu-utils zsync
- name: "list files"
run: |
ls ./
mkdir -p results
chmod a+x quickget
./quickget | awk 'NR==3,/zorin/' | tr ' ' '\n' | tee results/testing.list
- name: "make quickget executable"
run: |
chmod +x quickget
- name: "quickget version"
run: |
./quickget --version
- name: "show supported"
run: |
./quickget | awk 'NR==3,/zorin/' | tr ' ' '\n'
- name: "variable"
id: list-supported
run: |
SUPPORTED=$(./quickget | awk 'NR==3,/zorin/' | tr ' ' '\n')
echo "supported=$SUPPORTED" >> $GITHUB_OUTPUT
- name: "display supported"
run: |
echo "${{ steps.list-supported.outputs.supported }}"
- name: "Generate Matrix"
id: set-matrix
run: |
MATRIX="{\"include\": ["
for os in $SUPPORTED; do
for os in $supported; do
MATRIX+="{\"os\": \"$os\"},"
done
MATRIX="${MATRIX%,}]}"
echo "Generated Matrix: $MATRIX"
#echo "Generated Matrix: $MATRIX"
echo "matrix=$MATRIX" >> $GITHUB_OUTPUT
- name: "Display Matrix"
- name: "display Matrix"
run: |
echo "Matrix:"
echo "${{ steps.set-matrix.outputs.matrix }}"
run-actions:
Expand Down

0 comments on commit ce0d56a

Please sign in to comment.