add collect package #55
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Centreon Monitoring Agent Windows robot test | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
get-version: | ||
uses: ./.github/workflows/get-version.yml | ||
with: | ||
version_file: CMakeLists.txt | ||
build-collect: | ||
runs-on: [self-hosted, collect] | ||
steps: | ||
- name: compile and package collect | ||
uses: ./.github/actions/compile-package | ||
with: | ||
major_version: ${{ needs.get-version.outputs.major_version }} | ||
minor_version: ${{ needs.get-version.outputs.minor_version }} | ||
distrib: bullseye | ||
package_extension: deb | ||
arch: amd64 | ||
release: ${{ needs.get-version.outputs.release }} | ||
commit_hash: ${{ github.sha }} | ||
stability: ${{ needs.get-version.outputs.stability }} | ||
rpm_gpg_key: ${{ secrets.RPM_GPG_SIGNING_KEY }} | ||
rpm_gpg_signing_key_id: ${{ secrets.RPM_GPG_SIGNING_KEY_ID }} | ||
rpm_gpg_signing_passphrase: ${{ secrets.RPM_GPG_SIGNING_PASSPHRASE }} | ||
build-agent: | ||
needs: [get-version] | ||
runs-on: windows-latest | ||
steps: | ||
- name: distrib availables | ||
run: wsl --list --online | ||
- name: install debian | ||
uses: Vampire/setup-wsl@v3 | ||
with: | ||
distribution: Debian | ||
use-cache: 'true' | ||
# update: 'true' | ||
additional-packages: | ||
mariadb-server | ||
libmariadb3 | ||
librrd8 | ||
liblua5.3 | ||
python3 | ||
python3-pip | ||
rrdtool | ||
- name: check install | ||
run: | | ||
Write-Host installed | ||
wsl --list --verbose | ||
- name: nocrlf conversion | ||
run: git config --system core.autocrlf false | ||
- name: Checkout sources | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
- name: install database | ||
run: | | ||
$current_dir = (pwd).Path | ||
$wsl_path = "/mnt/" + $current_dir.SubString(0,1).ToLower() + "/" + $current_dir.SubString(3).replace('\','/') | ||
Write-Host "collect is there: " $wsl_path | ||
Write-Host "install mariadb" | ||
wsl cd $wsl_path `&`& .github/scripts/collect-setup-database.sh | ||
- name: Restore packages | ||
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | ||
with: | ||
path: ./*.deb | ||
key: ${{ github.run_id }}-${{ github.sha }}-deb-centreon-collect-bullseye-amd64-${{ github.head_ref || github.ref_name }} | ||
fail-on-cache-miss: true | ||
- name: list packages | ||
run: | | ||
$current_dir = (pwd).Path | ||
$wsl_path = "/mnt/" + $current_dir.SubString(0,1).ToLower() + "/" + | ||
wsl -ls -l $wsl_path |