On 1/19/23 21:12, Michael Santana wrote: > > > On 1/19/23 08:14, Ilya Maximets wrote: >> Testing that RPMs can be built to catch possible spec file >> issues like missing dependencies. >> >> GitHub seems to have an agreement with Docker Hub about rate >> limiting of image downloads, so it should not affect us. >> We may switch to quay.io if that will ever become a problem >> in the future. >> >> Signed-off-by: Ilya Maximets <[email protected]> >> --- >> .github/workflows/build-and-test.yml | 37 ++++++++++++++++++++++++++++ >> 1 file changed, 37 insertions(+) >> >> diff --git a/.github/workflows/build-and-test.yml >> b/.github/workflows/build-and-test.yml >> index 82675b973..883d44b4e 100644 >> --- a/.github/workflows/build-and-test.yml >> +++ b/.github/workflows/build-and-test.yml >> @@ -242,3 +242,40 @@ jobs: >> with: >> name: deb-packages-${{ matrix.dpdk }}-dpdk >> path: '/home/runner/work/ovs/*.deb' >> + >> + build-rpm-fedora: >> + name: linux rpm fedora >> + runs-on: ubuntu-22.04 >> + container: fedora:37 >> + timeout-minutes: 30 >> + >> + strategy: >> + fail-fast: false >> + >> + steps: >> + - name: checkout >> + uses: actions/checkout@v3 >> + - name: install dependencies >> + run: | >> + dnf install -y rpm-build dnf-plugins-core >> + sed -e 's/@VERSION@/0.0.1/' rhel/openvswitch-fedora.spec.in \ >> + > /tmp/ovs.spec >> + dnf builddep -y /tmp/ovs.spec >> + rm -f /tmp/ovs.spec >> + >> + - name: configure >> + run: ./boot.sh && ./configure >> + >> + - name: build >> + run: make rpm-fedora >> + >> + - name: install >> + run: dnf install -y rpm/rpmbuild/RPMS/*/*.rpm >> + >> + - name: upload rpm packages >> + uses: actions/upload-artifact@v3 > Where in github would the rpms be uploaded?
They can be seen in the 'artifacts' section of the workflow. See the example here: https://github.com/ovsrobot/ovs/actions/runs/3958800039 You need to be logged in in order to download them. > > are these meant to be distributed or just for debugging? Just for developers to verify that they look fine. The same as with deb packages that we already have. >> + with: >> + name: rpm-packages >> + path: | >> + rpm/rpmbuild/SRPMS/*.rpm >> + rpm/rpmbuild/RPMS/*/*.rpm > _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
