mirror of
https://github.com/armbian/os.git
synced 2026-01-06 10:38:50 -08:00
Cleanup
This commit is contained in:
77
.github/workflows/x.yaml
vendored
77
.github/workflows/x.yaml
vendored
@@ -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
Reference in New Issue
Block a user