Skip to content

Commit

Permalink
HACK
Browse files Browse the repository at this point in the history
Signed-off-by: Dumitru Ceara <[email protected]>
  • Loading branch information
dceara committed Jan 23, 2024
1 parent 38ca1cd commit d6f3a21
Showing 1 changed file with 2 additions and 112 deletions.
114 changes: 2 additions & 112 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ jobs:
- name: checkout
if: github.event_name == 'push' || github.event_name == 'pull_request'
uses: actions/checkout@v3
with:
submodules: recursive

# For weekly runs, don't update submodules
- name: checkout without submodule
Expand All @@ -189,12 +187,12 @@ jobs:
# Weekly runs test using the tip of the most recent stable OVS branch
# instead of the submodule.
- name: checkout OVS
if: github.event_name == 'schedule'
uses: actions/checkout@v3
with:
repository: 'openvswitch/ovs'
repository: 'dceara/ovs'
fetch-depth: 0
path: 'ovs'
ref: 'review-pws391613-clear-pkt-offload-flags'

- name: checkout OVS most recent stable branch.
if: github.event_name == 'schedule'
Expand Down Expand Up @@ -237,111 +235,3 @@ jobs:
with:
name: logs-linux-${{ join(matrix.cfg.*, '-') }}
path: logs.tgz

build-osx:
env:
CC: clang
OPTS: --disable-ssl

name: osx clang --disable-ssl
runs-on: macos-latest

strategy:
fail-fast: false

steps:
- name: checkout
if: github.event_name == 'push' || github.event_name == 'pull_request'
uses: actions/checkout@v3
with:
submodules: recursive
# For weekly runs, don't update submodules
- name: checkout without submodule
if: github.event_name == 'schedule'
uses: actions/checkout@v3
# Weekly runs test using the tip of the most recent stable OVS branch
# instead of the submodule.
- name: checkout OVS
if: github.event_name == 'schedule'
uses: actions/checkout@v3
with:
repository: 'openvswitch/ovs'
fetch-depth: 0
path: 'ovs'
- name: checkout OVS most recent stable branch.
if: github.event_name == 'schedule'
run: |
git checkout \
$(git branch -a -l '*branch-*' | sed 's/remotes\/origin\///' | \
sort -V | tail -1)
working-directory: ovs
- name: install dependencies
run: brew install automake libtool
- name: update PATH
run: |
echo "$HOME/bin" >> $GITHUB_PATH
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: set up python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: prepare
run: ./.ci/osx-prepare.sh
- name: build
run: ./.ci/osx-build.sh
- name: upload logs on failure
if: failure()
uses: actions/upload-artifact@v3
with:
name: logs-osx-clang---disable-ssl
path: config.log

build-linux-rpm:
name: linux rpm fedora
runs-on: ubuntu-22.04
container: fedora:latest
timeout-minutes: 30

strategy:
fail-fast: false

steps:
- name: install dependencies
run: dnf install -y dnf-plugins-core git rpm-build

- name: checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: install build dependencies
run: |
sed -e 's/@VERSION@/0.0.1/' rhel/ovn-fedora.spec.in \
> /tmp/ovn.spec
dnf builddep -y /tmp/ovn.spec
- name: configure OvS
run: ./boot.sh && ./configure
working-directory: ovs

- name: make dist OvS
run: make dist
working-directory: ovs

- name: configure OVN
run: ./boot.sh && ./configure

- name: make dist OVN
run: make dist

- name: build RPM
run: make rpm-fedora

- name: upload rpm packages
uses: actions/upload-artifact@v3
with:
name: rpm-packages
path: |
rpm/rpmbuild/SRPMS/*.rpm
rpm/rpmbuild/RPMS/*/*.rpm
retention-days: 14

0 comments on commit d6f3a21

Please sign in to comment.