ci: yaml
This commit is contained in:
		
							
								
								
									
										80
									
								
								.github/workflows/ubuntu.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										80
									
								
								.github/workflows/ubuntu.yml
									
									
									
									
										vendored
									
									
								
							| @@ -132,53 +132,53 @@ jobs: | |||||||
|           ] |           ] | ||||||
|  |  | ||||||
|     steps: |     steps: | ||||||
|     - name: Maximize build space |       - name: Maximize build space | ||||||
|     - uses: easimon/maximize-build-space@master |       - uses: easimon/maximize-build-space@master | ||||||
|       with: |         with: | ||||||
|         remove-dotnet: 'true' |           remove-dotnet: 'true' | ||||||
|         remove-android: 'true' |           remove-android: 'true' | ||||||
|         remove-haskell: 'true' |           remove-haskell: 'true' | ||||||
|         remove-codeql: 'true' |           remove-codeql: 'true' | ||||||
|         remove-docker-images: 'true' |           remove-docker-images: 'true' | ||||||
|  |  | ||||||
|     - name: Checkout |       - name: Checkout | ||||||
|     - uses: actions/checkout@v1 |       - uses: actions/checkout@v1 | ||||||
|  |  | ||||||
|     - name: Setup |       - name: Setup | ||||||
|       run: .github/workflows/scripts/setup.sh |         run: .github/workflows/scripts/setup.sh | ||||||
|  |  | ||||||
|     - name: Build |       - name: Build | ||||||
|       run: go build |         run: go build | ||||||
|  |  | ||||||
|     - name: Install dependencies for tests |       - name: Install dependencies for tests | ||||||
|       run: | |         run: | | ||||||
|         sudo apt-get update |           sudo apt-get update | ||||||
|         sudo apt-get install qemu-system-x86 |           sudo apt-get install qemu-system-x86 | ||||||
|  |  | ||||||
|     - name: End-to-End Testing ${{ matrix.type }} [${{ matrix.os.distro }} ${{ matrix.os.release }}] |       - name: End-to-End Testing ${{ matrix.type }} [${{ matrix.os.distro }} ${{ matrix.os.release }}] | ||||||
|       shell: bash |         shell: bash | ||||||
|       run: | |         run: | | ||||||
|         mkdir test |           mkdir test | ||||||
|         cd test |           cd test | ||||||
|  |  | ||||||
|         echo 'name = "test"' >> .out-of-tree.toml |           echo 'name = "test"' >> .out-of-tree.toml | ||||||
|         echo 'type = "${{ matrix.type }}"' >> .out-of-tree.toml |           echo 'type = "${{ matrix.type }}"' >> .out-of-tree.toml | ||||||
|         echo 'script = "script.sh"' >> .out-of-tree.toml |           echo 'script = "script.sh"' >> .out-of-tree.toml | ||||||
|         echo '[[targets]]' >> .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 'distro = { id = "${{ matrix.os.distro }}", release = "${{ matrix.os.release }}" }' >> .out-of-tree.toml | ||||||
|         echo 'kernel = { regex = ".*" }' >> .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 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 kernel autogen --max=1 --shuffle | ||||||
|         ../out-of-tree --log-level=debug pew --qemu-timeout=20m --include-internal-errors |           ../out-of-tree --log-level=debug pew --qemu-timeout=20m --include-internal-errors | ||||||
|  |  | ||||||
|     - name: Archive logs |       - name: Archive logs | ||||||
|       if: always() |         if: always() | ||||||
|       uses: actions/upload-artifact@v4 |         uses: actions/upload-artifact@v4 | ||||||
|       with: |         with: | ||||||
|         name: test-end-to-end-${{ matrix.type }}-${{ matrix.os.distro }}-${{ matrix.os.release }}-logs |           name: test-end-to-end-${{ matrix.type }}-${{ matrix.os.distro }}-${{ matrix.os.release }}-logs | ||||||
|         path: ~/.out-of-tree/logs |           path: ~/.out-of-tree/logs | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user