Update test.yml

This commit is contained in:
Егор
2025-02-04 17:19:23 +05:00
committed by GitHub
parent 7711f345e0
commit 881bd90806

View File

@@ -11,6 +11,7 @@ jobs:
#Test linux install script #Test linux install script
linux-install: linux-install:
name: linux(sh) script install test
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -28,6 +29,7 @@ jobs:
#Test Batch install script #Test Batch install script
batch-install: batch-install:
name: Batch script install test
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -42,6 +44,7 @@ jobs:
#Test PowerShell install script #Test PowerShell install script
PowerShell-install: PowerShell-install:
name: PowerShell install script test
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -61,6 +64,7 @@ jobs:
#Test Windows Installer #Test Windows Installer
build-Installer: build-Installer:
name: Build windows installer test
runs-on: windows-latest runs-on: windows-latest
needs: PowerShell-install needs: PowerShell-install
steps: steps:
@@ -78,8 +82,9 @@ jobs:
# Upload entire repository # Upload entire repository
path: './build/installer.exe' path: './build/installer.exe'
# Test deb package build # Test online deb package build
deb-package-build: deb-online-package-build:
name: Debian online package build test
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: linux-install needs: linux-install
steps: steps:
@@ -88,7 +93,7 @@ jobs:
- name: Build - name: Build
run: | run: |
cmake -B ${{ github.workspace }}/build cmake -B ${{ github.workspace }}/build
cmake --build ${{ github.workspace }}/build --target deb cmake --build ${{ github.workspace }}/build --target debOnline
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
@@ -98,16 +103,67 @@ jobs:
path: './build/package.deb' path: './build/package.deb'
# Test deb package install/remove # Test deb package install/remove
deb-package-test: deb-online-package-test:
name: Debian online package install/remove test
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: deb-package-build needs: deb-online-package-build
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build - name: Build
run: | run: |
cmake -B ${{ github.workspace }}/build cmake -B ${{ github.workspace }}/build
cmake --build ${{ github.workspace }}/build --target deb cmake --build ${{ github.workspace }}/build --target debOnline
- name: Install package
run: echo '/kolibrios-toolchain' | sudo apt install ${{ github.workspace }}/build/package.deb -y
- name: Add toolchain to path
run: echo "/kolibrios-toolchain/win32/bin" >> $GITHUB_PATH
- name: Test run
run: |
kos32-g++ -v
kos32-gcc -v
/home/autobuild/tools/win32/bin/kos32-gcc -v
/home/autobuild/tools/win32/bin/kos32-g++ -v
/kolibrios-toolchain/win32/bin/kos32-gcc -v
/kolibrios-toolchain/win32/bin/kos32-g++ -v
- name: Remove package
run: sudo apt remove kos32-gcc
# Test offline deb package build
deb-offline-package-build:
name: Debian offline package build test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
cmake -B ${{ github.workspace }}/build
cmake --build ${{ github.workspace }}/build --target debOffline
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: deb-package
# Upload entire repository
path: './build/package.deb'
# Test deb package install/remove
deb-offline-package-test:
name: Debian offline package install/remove test
runs-on: ubuntu-latest
needs: deb-offline-package-build
steps:
- uses: actions/checkout@v4
- name: Build
run: |
cmake -B ${{ github.workspace }}/build
cmake --build ${{ github.workspace }}/build --target debOffline
- name: Install package - name: Install package
run: echo '/kolibrios-toolchain' | sudo apt install ${{ github.workspace }}/build/package.deb -y run: echo '/kolibrios-toolchain' | sudo apt install ${{ github.workspace }}/build/package.deb -y
@@ -129,6 +185,7 @@ jobs:
#Test chocolatey package build #Test chocolatey package build
chocolatey-package-build: chocolatey-package-build:
name: Chocolatey build package test
runs-on: windows-latest runs-on: windows-latest
needs: PowerShell-install needs: PowerShell-install
steps: steps:
@@ -148,6 +205,7 @@ jobs:
# Test chocolatey package install/remove # Test chocolatey package install/remove
chocolatey-package-test: chocolatey-package-test:
name: chocolatey install test
runs-on: windows-latest runs-on: windows-latest
needs: chocolatey-package-build needs: chocolatey-package-build
steps: steps: