This commit is contained in:
Igor Pecovnik
2024-06-01 13:31:36 +02:00
parent b1c315cca0
commit 63dbd68308
33 changed files with 0 additions and 77 deletions

View File

@@ -1,77 +0,0 @@
name: Testxxx
on:
workflow_dispatch:
jobs:
test:
name: "Test"
runs-on: ubuntu-latest
outputs:
max-parallel: 18
matrix: ${{steps.json.outputs.JSON_CONTENT}}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: armbian/os
path: os
fetch-depth: '2'
clean: false
- name: "Make JSON"
id: json
run: |
# define docker images where we will run test install
dockerimages=("debian:bookworm" "ubuntu:jammy" "ubuntu:noble")
# read packages and loop them
packages=($(grep -rw os/external/*.conf -e amd64 | cut -d"/" -f3 | cut -d"." -f1))
for i in "${packages[@]}"; do
# read config file
. os/external/${i}.conf
# for now, we can only do amd64 test installs
if [[ -n "${INSTALL}" && "${ARCH}" == *amd64* ]]; then
# if we speficy releases, we need to loop docker images and use if there is a match
if [[ $RELEASE != all ]]; then
for j in ${dockerimages[@]}; do
elements=($(echo $RELEASE | tr ':' "\n"))
for SELECTED_RELEASE in "${elements[@]}"; do
if [[ $j == *"${SELECTED_RELEASE}"* ]]; then
echo "{\"package\":\"${i}\",\"image\":\"$j\"}"
fi
done
done
else
for j in ${dockerimages[@]}; do
echo "{\"package\":\"${i}\",\"image\":\"$j\"}"
done
fi
fi
done
gradle:
needs: test
strategy:
fail-fast: false
max-parallel: 32
matrix:
image: ${{ fromJSON(needs.test.outputs.matrix) }}
name: "I"
timeout-minutes: 30
runs-on: ubuntu-latest
container:
image: "${{ matrix.image.image }}"
steps:
- name: Download a single artifact
uses: actions/download-artifact@v4
with:
name: assets-for-download
path: downloads

Some files were not shown because too many files have changed in this diff Show More