diff --git a/.github/workflows/package_specific.yaml b/.github/workflows/package_specific.yaml index 6181524db..2d3d26ef5 100644 --- a/.github/workflows/package_specific.yaml +++ b/.github/workflows/package_specific.yaml @@ -15,49 +15,28 @@ on: options: - Release - RelWithDebInfo - build_amzn_2: - type: boolean - default: false - build_centos_7: - type: boolean - default: false - build_centos_9: - type: boolean - default: false - build_debian_10: - type: boolean - default: false - build_debian_11: - type: boolean - default: false - build_debian_11_arm: - type: boolean - default: false - build_debian_11_platform: - type: boolean - default: false - build_docker: - type: boolean - default: false - build_fedora_36: - type: boolean - default: false - build_ubuntu_18_04: - type: boolean - default: false - build_ubuntu_20_04: - type: boolean - default: false - build_ubuntu_22_04: - type: boolean - default: false - build_ubuntu_22_04_arm: - type: boolean - default: false + target_os: + type: choice + description: "Target OS for which memgraph will be packaged. Default is Ubuntu 22.04" + default: 'ubuntu-22_04' + options: + - amzn-2 + - centos-7 + - centos-9 + - debian-10 + - debian-11 + - debian-11-arm + - debian-11-platform + - docker + - fedora-36 + - ubuntu-18_04 + - ubuntu-20_04 + - ubuntu-22_04 + - ubuntu-22_04-arm jobs: amzn-2: - if: ${{ github.event.inputs.build_amzn_2 }} + if: ${{ github.event.inputs.target_os == 'amzn-2' }} runs-on: [self-hosted, DockerMgBuild, X64] timeout-minutes: 60 steps: @@ -75,7 +54,7 @@ jobs: path: build/output/amzn-2/memgraph*.rpm centos-7: - if: ${{ github.event.inputs.build_centos_7 }} + if: ${{ github.event.inputs.target_os == 'centos-7' }} runs-on: [self-hosted, DockerMgBuild, X64] timeout-minutes: 60 steps: @@ -93,7 +72,7 @@ jobs: path: build/output/centos-7/memgraph*.rpm centos-9: - if: ${{ github.event.inputs.build_centos_9 }} + if: ${{ github.event.inputs.target_os == 'centos-9' }} runs-on: [self-hosted, DockerMgBuild, X64] timeout-minutes: 60 steps: @@ -111,7 +90,7 @@ jobs: path: build/output/centos-9/memgraph*.rpm debian-10: - if: ${{ github.event.inputs.build_debian_10 }} + if: ${{ github.event.inputs.target_os == 'debian-10' }} runs-on: [self-hosted, DockerMgBuild, X64] timeout-minutes: 60 steps: @@ -129,7 +108,7 @@ jobs: path: build/output/debian-10/memgraph*.deb debian-11: - if: ${{ github.event.inputs.build_debian_11 }} + if: ${{ github.event.inputs.target_os == 'debian-11' }} runs-on: [self-hosted, DockerMgBuild, X64] timeout-minutes: 60 steps: @@ -147,7 +126,7 @@ jobs: path: build/output/debian-11/memgraph*.deb debian-11-arm: - if: ${{ github.event.inputs.build_debian_11_arm }} + if: ${{ github.event.inputs.target_os == 'debian-11-arm' }} runs-on: [self-hosted, DockerMgBuild, ARM64, strange] timeout-minutes: 120 steps: @@ -165,7 +144,7 @@ jobs: path: build/output/debian-11-arm/memgraph*.deb debian-11-platform: - if: ${{ github.event.inputs.build_debian_11_platform }} + if: ${{ github.event.inputs.target_os == 'debian-11-platform' }} runs-on: [self-hosted, DockerMgBuild, X64] timeout-minutes: 60 steps: @@ -183,7 +162,7 @@ jobs: path: build/output/debian-11/memgraph*.deb docker: - if: ${{ github.event.inputs.build_docker }} + if: ${{ github.event.inputs.target_os == 'docker' }} runs-on: [self-hosted, DockerMgBuild, X64] timeout-minutes: 60 steps: @@ -203,7 +182,7 @@ jobs: path: build/output/docker/memgraph*.tar.gz fedora-36: - if: ${{ github.event.inputs.build_fedora_36 }} + if: ${{ github.event.inputs.target_os == 'fedora-36' }} runs-on: [self-hosted, DockerMgBuild, X64] timeout-minutes: 60 steps: @@ -221,7 +200,7 @@ jobs: path: build/output/fedora-36/memgraph*.rpm ubuntu-18_04: - if: ${{ github.event.inputs.build_ubuntu_18_04 }} + if: ${{ github.event.inputs.target_os == 'ubuntu-18_04' }} runs-on: [self-hosted, DockerMgBuild, X64] timeout-minutes: 60 steps: @@ -239,7 +218,7 @@ jobs: path: build/output/ubuntu-18.04/memgraph*.deb ubuntu-20_04: - if: ${{ github.event.inputs.build_ubuntu_20_04 }} + if: ${{ github.event.inputs.target_os == 'ubuntu-20_04' }} runs-on: [self-hosted, DockerMgBuild, X64] timeout-minutes: 60 steps: @@ -257,7 +236,7 @@ jobs: path: build/output/ubuntu-20.04/memgraph*.deb ubuntu-22_04: - if: ${{ github.event.inputs.build_ubuntu_22_04 }} + if: ${{ github.event.inputs.target_os == 'ubuntu-22_04' }} runs-on: [self-hosted, DockerMgBuild, X64] timeout-minutes: 60 steps: @@ -275,7 +254,7 @@ jobs: path: build/output/ubuntu-22.04/memgraph*.deb ubuntu-22_04-arm: - if: ${{ github.event.inputs.build_ubuntu_22_04_arm }} + if: ${{ github.event.inputs.target_os == 'ubuntu-22_04-arm' }} runs-on: [self-hosted, DockerMgBuild, ARM64, strange] timeout-minutes: 120 steps: