mirror of
https://github.com/armbian/scripts.git
synced 2026-01-06 10:32:48 -08:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
67 lines
1.9 KiB
YAML
67 lines
1.9 KiB
YAML
name: Test inside container
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
inputs:
|
|
url:
|
|
required: false
|
|
type: string
|
|
default: 'apt.armbian.com'
|
|
package:
|
|
required: false
|
|
type: string
|
|
workflow_call:
|
|
inputs:
|
|
url:
|
|
required: false
|
|
type: string
|
|
default: 'apt.armbian.com'
|
|
package:
|
|
required: false
|
|
type: string
|
|
|
|
jobs:
|
|
|
|
gradle:
|
|
strategy:
|
|
fail-fast: false
|
|
max-parallel: 8
|
|
matrix:
|
|
image: ["debian:buster","debian:bullseye","debian:bookworm","debian:sid","ubuntu:focal","ubuntu:jammy","ubuntu:lunar"]
|
|
|
|
name: Test install
|
|
timeout-minutes: 10
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: "${{ matrix.image }}"
|
|
steps:
|
|
|
|
- name: Checkout Armbian OS Config
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: armbian/os
|
|
ref: main
|
|
clean: false
|
|
fetch-depth: 1
|
|
path: os
|
|
|
|
- name: Show
|
|
run: |
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
RELEASE=$(echo "${{ matrix.image }}" | cut -d":" -f2)
|
|
apt update
|
|
apt -y install wget gpg
|
|
|
|
# add armbian repository
|
|
wget https://${{ inputs.url }}/armbian.key -O key
|
|
gpg --dearmor < key | tee /usr/share/keyrings/armbian.gpg > /dev/null
|
|
chmod go+r /usr/share/keyrings/armbian.gpg
|
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/armbian.gpg] http://${{ inputs.url }} $RELEASE main ${RELEASE}-utils ${RELEASE}-desktop" | tee /etc/apt/sources.list.d/armbian.list
|
|
apt update -y
|
|
apt upgrade -y
|
|
|
|
# install packages / except howdy as its too large
|
|
apt install -y $(cat os/external/projects.csv | grep -v howdy | cut -d"," -f1,4,8 | sort | head -n -1 | grep "all\|${RELEASE}" $EXCLUDE | grep "amd64" | cut -d"," -f1 |paste -sd" " -) ${{ inputs.package }}
|