Skip to content

Commit

Permalink
Attempt to fix broken jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
tswhison committed Dec 19, 2022
1 parent 10a4fd3 commit 50b4252
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-rpms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
run: docker build . -f docker/${{ matrix.distro }}/Dockerfile -t opae-${{ matrix.distro }}
- name: Build RPMs
run: |
docker run --rm -v ${{ github.workspace }}:/opae-sdk opae-${{ matrix.distro }} /opae-sdk
docker run --rm -v ${{ github.workspace }}:/opae-${{ matrix.distro }}/opae-sdk opae-${{ matrix.distro }} /opae-${{ matrix.distro }}/opae-sdk
- name: Install and Test RPMs
if: ${{ github.event_name != 'pull_request'}}
#if: ${{ github.event_name != 'pull_request'}}
run: |
docker run --rm -v ${{ github.workspace }}/${{ matrix.distro }}:/build --entrypoint /bin/bash opae-${{ matrix.distro }} -c "/scripts/test-rpms.sh /build"
docker run --rm -v ${{ github.workspace }}:/opae-${{ matrix.distro }}/opae-sdk --entrypoint /bin/bash /scripts/test-rpms.sh /opae-${{ matrix.distro }}/opae-sdk/packaging/opae/rpm
- name: Upload Artifact
if: ${{ github.event_name != 'pull_request'}}
#if: ${{ github.event_name != 'pull_request'}}
uses: actions/upload-artifact@v2.1.4
with:
name: OPAE-${{ matrix.distro }}
Expand Down
9 changes: 5 additions & 4 deletions scripts/test-rpms.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#! /bin/bash
#
#!/bin/bash
rpmdir=$(realpath ${1:-$PWD})
yum install -y $rpmdir/opae*.rpm
if [ $? == 1 ]; then

dnf install -y $rpmdir/opae*.rpm
if [ $? -ne 0 ]; then
echo "Could not install OPAE RPMs"
exit 1
fi

failures=0
test_exit_code(){
expected_code=$1
Expand Down

0 comments on commit 50b4252

Please sign in to comment.