github: Simplify CI workflow
This commit is contained in:
parent
5ad68a6f76
commit
950766b0c3
|
|
@ -9,68 +9,9 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "00 03 * * 0"
|
- cron: "00 03 * * 0"
|
||||||
|
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-boot-x86:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: build x86
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Install dependencies
|
|
||||||
timeout-minutes: 5
|
|
||||||
env:
|
|
||||||
DEBIAN_FRONTEND: noninteractive
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get --assume-yes \
|
|
||||||
--no-install-recommends \
|
|
||||||
install bc \
|
|
||||||
bison \
|
|
||||||
bzip2 \
|
|
||||||
ca-certificates \
|
|
||||||
device-tree-compiler \
|
|
||||||
dosfstools \
|
|
||||||
flex \
|
|
||||||
gcc \
|
|
||||||
gcc-arm-none-eabi \
|
|
||||||
gcc-i686-linux-gnu \
|
|
||||||
git \
|
|
||||||
libssl-dev \
|
|
||||||
make \
|
|
||||||
mtools \
|
|
||||||
parted \
|
|
||||||
pigz \
|
|
||||||
python2-dev \
|
|
||||||
python3-dev \
|
|
||||||
python3-pkg-resources \
|
|
||||||
swig
|
|
||||||
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Build qemu_x86_virt
|
|
||||||
timeout-minutes: 5
|
|
||||||
run: |
|
|
||||||
env PATH=$GITHUB_WORKSPACE/scripts:$PATH \
|
|
||||||
ARTIFACTS_DIR=$RUNNER_TEMP \
|
|
||||||
build-boot qemu_x86_virt \
|
|
||||||
qemu-x86 \
|
|
||||||
qemu-x86_defconfig \
|
|
||||||
i686-linux-gnu
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: boot-qemu_x86_virt-master
|
|
||||||
path: ${{ runner.temp }}/boot-qemu_x86_virt.bin.gz
|
|
||||||
if-no-files-found: error
|
|
||||||
retention-days: 1
|
|
||||||
|
|
||||||
test-debian-x86:
|
test-debian-x86:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build-boot-x86
|
|
||||||
name: test ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.suite }}
|
name: test ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.suite }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
|
|
@ -101,21 +42,48 @@ jobs:
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get --assume-yes \
|
sudo apt-get --assume-yes \
|
||||||
--no-install-recommends \
|
--no-install-recommends \
|
||||||
install bzip2 \
|
install bc \
|
||||||
|
bison \
|
||||||
|
bzip2 \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
debian-archive-keyring \
|
debian-archive-keyring \
|
||||||
debootstrap \
|
debootstrap \
|
||||||
|
device-tree-compiler \
|
||||||
|
dosfstools \
|
||||||
e2fsprogs \
|
e2fsprogs \
|
||||||
|
flex \
|
||||||
|
gcc \
|
||||||
|
gcc-arm-none-eabi \
|
||||||
|
gcc-i686-linux-gnu \
|
||||||
|
git \
|
||||||
|
libssl-dev \
|
||||||
|
make \
|
||||||
|
mtools \
|
||||||
parted \
|
parted \
|
||||||
pigz \
|
pigz \
|
||||||
pwgen \
|
pwgen \
|
||||||
qemu-system-x86 \
|
python2-dev \
|
||||||
|
python3-dev \
|
||||||
|
python3-pkg-resources \
|
||||||
ssh \
|
ssh \
|
||||||
sshpass
|
sshpass \
|
||||||
|
swig \
|
||||||
|
qemu-system-x86
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build qemu_x86_virt
|
||||||
|
timeout-minutes: 5
|
||||||
|
run: |
|
||||||
|
env PATH=$GITHUB_WORKSPACE/scripts:$PATH \
|
||||||
|
ARTIFACTS_DIR=$RUNNER_TEMP \
|
||||||
|
U_BOOT_GIT_URL="https://github.com/u-boot/u-boot.git" \
|
||||||
|
build-boot qemu_x86_virt \
|
||||||
|
qemu-x86 \
|
||||||
|
qemu-x86_defconfig \
|
||||||
|
i686-linux-gnu
|
||||||
|
|
||||||
- name: Build ${{ matrix.suite }} ${{ matrix.arch }}
|
- name: Build ${{ matrix.suite }} ${{ matrix.arch }}
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -125,11 +93,6 @@ jobs:
|
||||||
$DEBIAN_ARCH \
|
$DEBIAN_ARCH \
|
||||||
$DEBIAN_SUITE
|
$DEBIAN_SUITE
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: boot-qemu_x86_virt-master
|
|
||||||
path: ${{ runner.temp }}
|
|
||||||
|
|
||||||
- name: Test qemu_x86_virt + ${{ matrix.suite }} ${{ matrix.arch }}
|
- name: Test qemu_x86_virt + ${{ matrix.suite }} ${{ matrix.arch }}
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue