From dffbae094e17e27c296b7282d57451ecada1e04c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Pablo=20Labajo=20Izquierdo?= Date: Tue, 3 Sep 2024 16:55:51 +0200 Subject: [PATCH 1/2] REmove unneeded workflow steps --- .github/workflows/server.parent.yaml | 73 ++++++++++++++-------------- 1 file changed, 37 insertions(+), 36 deletions(-) diff --git a/.github/workflows/server.parent.yaml b/.github/workflows/server.parent.yaml index 00512c795..001f38748 100644 --- a/.github/workflows/server.parent.yaml +++ b/.github/workflows/server.parent.yaml @@ -38,42 +38,43 @@ on: default: "Linux" jobs: - libsrtp: - if: ${{ ! inputs.jobOnlyKurento }} - uses: "Kurento/libsrtp/.github/workflows/kurento-buildpackage.reusable.yaml@7.0.0" - with: - jobDistros: "${{ inputs.jobDistros }}" - jobGitName: "7.0.0" - jobGitNameFallback: "" - jobRelease: ${{ inputs.jobRelease }} - - openh264: - if: ${{ ! inputs.jobOnlyKurento }} - uses: "Kurento/openh264/.github/workflows/kurento-buildpackage.reusable.yaml@7.0.0" - with: - jobDistros: "${{ inputs.jobDistros }}" - jobGitName: "7.0.0" - jobGitNameFallback: "" - jobRelease: ${{ inputs.jobRelease }} - - openh264-gst-plugin: - if: ${{ ! inputs.jobOnlyKurento }} - needs: ["openh264"] - uses: "Kurento/openh264-gst-plugin/.github/workflows/kurento-buildpackage.reusable.yaml@master" - with: - jobDistros: "${{ inputs.jobDistros }}" - jobGitName: "master" - jobGitNameFallback: "" - jobRelease: ${{ inputs.jobRelease }} - - gst-plugins-good: - if: ${{ ! inputs.jobOnlyKurento }} - uses: "Kurento/gst-plugins-good/.github/workflows/kurento-buildpackage.reusable.yaml@7.0.0" - with: - jobDistros: "${{ inputs.jobDistros }}" - jobGitName: "7.0.0" - jobGitNameFallback: "" - jobRelease: ${{ inputs.jobRelease }} +# Not needed for 7.1.0 onwards on ubuntu 24.04 +# libsrtp: +# if: ${{ ! inputs.jobOnlyKurento }} +# uses: "Kurento/libsrtp/.github/workflows/kurento-buildpackage.reusable.yaml@7.0.0" +# with: +# jobDistros: "${{ inputs.jobDistros }}" +# jobGitName: "7.0.0" +# jobGitNameFallback: "" +# jobRelease: ${{ inputs.jobRelease }} +# +# openh264: +# if: ${{ ! inputs.jobOnlyKurento }} +# uses: "Kurento/openh264/.github/workflows/kurento-buildpackage.reusable.yaml@7.0.0" +# with: +# jobDistros: "${{ inputs.jobDistros }}" +# jobGitName: "7.0.0" +# jobGitNameFallback: "" +# jobRelease: ${{ inputs.jobRelease }} +# +# openh264-gst-plugin: +# if: ${{ ! inputs.jobOnlyKurento }} +# needs: ["openh264"] +# uses: "Kurento/openh264-gst-plugin/.github/workflows/kurento-buildpackage.reusable.yaml@master" +# with: +# jobDistros: "${{ inputs.jobDistros }}" +# jobGitName: "master" +# jobGitNameFallback: "" +# jobRelease: ${{ inputs.jobRelease }} +# +# gst-plugins-good: +# if: ${{ ! inputs.jobOnlyKurento }} +# uses: "Kurento/gst-plugins-good/.github/workflows/kurento-buildpackage.reusable.yaml@7.0.0" +# with: +# jobDistros: "${{ inputs.jobDistros }}" +# jobGitName: "7.0.0" +# jobGitNameFallback: "" +# jobRelease: ${{ inputs.jobRelease }} libnice: if: ${{ ! inputs.jobOnlyKurento }} From 30bf760cbeb902c4e43bbcdf850622fc5dc8ca65 Mon Sep 17 00:00:00 2001 From: Kurento CI bot Date: Thu, 5 Sep 2024 13:11:39 +0200 Subject: [PATCH 2/2] Create docker-rust-buildpackage.yaml --- .../workflows/docker-rust-buildpackage.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/docker-rust-buildpackage.yaml diff --git a/.github/workflows/docker-rust-buildpackage.yaml b/.github/workflows/docker-rust-buildpackage.yaml new file mode 100644 index 000000000..563110391 --- /dev/null +++ b/.github/workflows/docker-rust-buildpackage.yaml @@ -0,0 +1,55 @@ +name: "docker/rust-buildpackage" + +on: + # Manual trigger. + workflow_dispatch: + inputs: + jobDistros: + description: "jobDistros: List of Ubuntu codenames to build for" + required: true + # There is no `list` type, so use a raw JSON array and `fromJSON()`. + # Example: '["xenial", "bionic", "focal"]' + type: "string" + default: '["noble"]' + runnerGroup: + description: "runnerGroup: Set of runners where the workflow jobs should be run" + required: false + type: "string" + default: "Linux" + +defaults: + run: + shell: "bash --noprofile --norc -o errexit -o errtrace -o pipefail -o nounset -o xtrace {0}" + +jobs: + build: + runs-on: ["self-hosted", "${{ inputs.runnerGroup }}"] + strategy: + # Run each configuration sequentially. + # Docker login & build fails if ran multiple times in parallel. + max-parallel: 1 + matrix: + jobDistro: ${{ fromJSON(inputs.jobDistros) }} + timeout-minutes: 30 + steps: + # Action: https://github.com/actions/checkout + - name: "Checkout" + uses: "actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11" # v4.1.1 + + - name: "Configure the environment for ci-scripts/" + working-directory: "ci-scripts/" + run: | + echo "$PWD" >>$GITHUB_PATH + echo "KURENTO_SCRIPTS_HOME=$PWD" >>$GITHUB_ENV + echo "JOB_TIMESTAMP=$(date --utc +%Y%m%d%H%M%S)" >>$GITHUB_ENV + + - name: "Run job script" + env: + PUSH_IMAGES: "no" + BUILD_ARGS: "UBUNTU_CODENAME=${{ matrix.jobDistro }}" + TAG: "${{ matrix.jobDistro }}-${{ env.JOB_TIMESTAMP }}" + # Moving tags, example: "1.2.3", "1.2", "1", "latest" + EXTRA_TAGS: "${{ matrix.jobDistro }}" + TAG_COMMIT: "no" + working-directory: docker/rust-buildpackage/ + run: container_build.sh