From 94d0cf1ae45b2f2b1173bde2280d37c57a730bc2 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Wed, 21 Feb 2024 11:51:30 +0000 Subject: [PATCH] ci: yaml --- .github/workflows/ubuntu.yml | 80 ++++++++++++++++++------------------ 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 6a4c20a..45e92be 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -132,53 +132,53 @@ jobs: ] steps: - - name: Maximize build space - - uses: easimon/maximize-build-space@master - with: - remove-dotnet: 'true' - remove-android: 'true' - remove-haskell: 'true' - remove-codeql: 'true' - remove-docker-images: 'true' + - name: Maximize build space + - uses: easimon/maximize-build-space@master + with: + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' + remove-codeql: 'true' + remove-docker-images: 'true' - - name: Checkout - - uses: actions/checkout@v1 + - name: Checkout + - uses: actions/checkout@v1 - - name: Setup - run: .github/workflows/scripts/setup.sh + - name: Setup + run: .github/workflows/scripts/setup.sh - - name: Build - run: go build + - name: Build + run: go build - - name: Install dependencies for tests - run: | - sudo apt-get update - sudo apt-get install qemu-system-x86 + - name: Install dependencies for tests + run: | + sudo apt-get update + sudo apt-get install qemu-system-x86 - - name: End-to-End Testing ${{ matrix.type }} [${{ matrix.os.distro }} ${{ matrix.os.release }}] - shell: bash - run: | - mkdir test - cd test + - name: End-to-End Testing ${{ matrix.type }} [${{ matrix.os.distro }} ${{ matrix.os.release }}] + shell: bash + run: | + mkdir test + cd test - echo 'name = "test"' >> .out-of-tree.toml - echo 'type = "${{ matrix.type }}"' >> .out-of-tree.toml - echo 'script = "script.sh"' >> .out-of-tree.toml - echo '[[targets]]' >> .out-of-tree.toml - echo 'distro = { id = "${{ matrix.os.distro }}", release = "${{ matrix.os.release }}" }' >> .out-of-tree.toml - echo 'kernel = { regex = ".*" }' >> .out-of-tree.toml + echo 'name = "test"' >> .out-of-tree.toml + echo 'type = "${{ matrix.type }}"' >> .out-of-tree.toml + echo 'script = "script.sh"' >> .out-of-tree.toml + echo '[[targets]]' >> .out-of-tree.toml + echo 'distro = { id = "${{ matrix.os.distro }}", release = "${{ matrix.os.release }}" }' >> .out-of-tree.toml + echo 'kernel = { regex = ".*" }' >> .out-of-tree.toml - echo -e '#!/bin/sh\necho ok' >> script.sh + echo -e '#!/bin/sh\necho ok' >> script.sh - cp ../examples/kernel-module/{module.c,Makefile,test.sh} . + cp ../examples/kernel-module/{module.c,Makefile,test.sh} . - ../out-of-tree --log-level=debug kernel list-remote --distro=${{ matrix.os.distro }} --ver=${{ matrix.os.release }} - ../out-of-tree --log-level=debug kernel autogen --max=1 --shuffle - ../out-of-tree --log-level=debug pew --qemu-timeout=20m --include-internal-errors + ../out-of-tree --log-level=debug kernel list-remote --distro=${{ matrix.os.distro }} --ver=${{ matrix.os.release }} + ../out-of-tree --log-level=debug kernel autogen --max=1 --shuffle + ../out-of-tree --log-level=debug pew --qemu-timeout=20m --include-internal-errors - - name: Archive logs - if: always() - uses: actions/upload-artifact@v4 - with: - name: test-end-to-end-${{ matrix.type }}-${{ matrix.os.distro }}-${{ matrix.os.release }}-logs - path: ~/.out-of-tree/logs + - name: Archive logs + if: always() + uses: actions/upload-artifact@v4 + with: + name: test-end-to-end-${{ matrix.type }}-${{ matrix.os.distro }}-${{ matrix.os.release }}-logs + path: ~/.out-of-tree/logs