Skip to content

Commit

Permalink
prod: build and test github action now uses docker images from github…
Browse files Browse the repository at this point in the history
… container registry
  • Loading branch information
rhornig committed Mar 20, 2023
1 parent 1f8e95d commit f4a8899
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 18 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-and-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Pull Docker image
run: docker pull omnetpp/travis-inet:6.0-220428
run: docker pull ghcr.io/inet-framework/ci-inet:6.0.1-230320
- name: Build (native)
run: |
docker run -i --env TARGET_PLATFORM=linux --env MODE=${{ matrix.mode }} --env GITHUB_WORKSPACE \
-v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE \
omnetpp/travis-inet:6.0-220428 /bin/bash $GITHUB_WORKSPACE/_scripts/github/github-job-build.sh
ghcr.io/inet-framework/ci-inet:6.0.1-230320 /bin/bash $GITHUB_WORKSPACE/_scripts/github/github-job-build.sh
- uses: actions/upload-artifact@v3
with:
name: libinet-so
Expand All @@ -43,12 +43,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Pull Docker image
run: docker pull omnetpp/travis-inet:6.0-220428
run: docker pull ghcr.io/inet-framework/ci-inet:6.0.1-230320
- name: Build (cross)
run: |
docker run -i --env TARGET_PLATFORM=${{ matrix.target }} --env MODE=${{ matrix.mode }} --env GITHUB_WORKSPACE \
-v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE \
omnetpp/travis-inet:6.0-220428 /bin/bash $GITHUB_WORKSPACE/_scripts/github/github-job-build.sh
ghcr.io/inet-framework/ci-inet:6.0.1-230320 /bin/bash $GITHUB_WORKSPACE/_scripts/github/github-job-build.sh
fingerprints:
needs: build-native
Expand All @@ -65,12 +65,12 @@ jobs:
name: libinet-so
path: ${{ github.workspace }}/src/
- name: Pull Docker image
run: docker pull omnetpp/travis-inet:6.0-220428
run: docker pull ghcr.io/inet-framework/ci-inet:6.0.1-230320
- name: Fingerprint tests
run: |
docker run -i --env MODE=${{ matrix.mode }} --env GITHUB_WORKSPACE --env SPLIT_N=4 --env SPLIT_I=${{ matrix.split }} \
-v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE \
omnetpp/travis-inet:6.0-220428 /bin/bash $GITHUB_WORKSPACE/_scripts/github/github-job-fingerprints.sh
ghcr.io/inet-framework/ci-inet:6.0.1-230320 /bin/bash $GITHUB_WORKSPACE/_scripts/github/github-job-fingerprints.sh
other-tests:
needs: build-native
Expand All @@ -88,10 +88,10 @@ jobs:
name: libinet-so
path: ${{ github.workspace }}/src/
- name: Pull Docker image
run: docker pull omnetpp/travis-inet:6.0-220428
run: docker pull ghcr.io/inet-framework/ci-inet:6.0.1-230320
- name: Run ${{ matrix.testdir }} tests
run: |
docker run -i --env MODE=debug --env GITHUB_WORKSPACE --env TESTDIR=${{ matrix.testdir }} \
-v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE \
omnetpp/travis-inet:6.0-220428 /bin/bash $GITHUB_WORKSPACE/_scripts/github/github-job-other-tests.sh
ghcr.io/inet-framework/ci-inet:6.0.1-230320 /bin/bash $GITHUB_WORKSPACE/_scripts/github/github-job-other-tests.sh
4 changes: 2 additions & 2 deletions .github/workflows/featuretests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Pull Docker image
run: docker pull omnetpp/travis-inet:6.0-220428
run: docker pull ghcr.io/inet-framework/ci-inet:6.0.1-230320
- name: Feature tests (split)
run: |
docker run -i --env SKIPPED_FEATURES="" --env SPLIT_INDEX=${{ matrix.node-index }} --env SPLIT_TOTAL=${{ matrix.node-total }} \
--env GITHUB_WORKSPACE -v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE \
omnetpp/travis-inet:6.0-220428 /bin/bash $GITHUB_WORKSPACE/_scripts/github/github-job-featuretests.sh
ghcr.io/inet-framework/ci-inet:6.0.1-230320 /bin/bash $GITHUB_WORKSPACE/_scripts/github/github-job-featuretests.sh
- uses: actions/upload-artifact@v3
if: always() # even if the test failed, of course
with:
Expand Down
2 changes: 0 additions & 2 deletions _scripts/github/github-job-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ cd $GITHUB_WORKSPACE

. setenv -f

cp -r /root/nsc-0.5.3 3rdparty

echo "::group::Enable all features"
opp_featuretool enable all 2>&1 # redirecting stderr so it doesn't get out of sync with stdout
echo "::endgroup::"
Expand Down
2 changes: 0 additions & 2 deletions _scripts/github/github-job-featuretests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ cd $GITHUB_WORKSPACE

. setenv -f

cp -r /root/nsc-0.5.3 3rdparty

echo "::group::Run feature tests"
cd tests/features
./featuretest | tee featuretest.out
Expand Down
2 changes: 0 additions & 2 deletions _scripts/github/github-job-fingerprints.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ cd $GITHUB_WORKSPACE

. setenv -f

cp -r /root/nsc-0.5.3 3rdparty

echo "::group::Enable all features"
opp_featuretool enable all 2>&1 # redirecting stderr so it doesn't get out of sync with stdout
echo "::endgroup::"
Expand Down
2 changes: 0 additions & 2 deletions _scripts/github/github-job-other-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ cd $GITHUB_WORKSPACE

. setenv -f

cp -r /root/nsc-0.5.3 3rdparty

echo "::group::Enable all features"
opp_featuretool enable all 2>&1 # redirecting stderr so it doesn't get out of sync with stdout
echo "::endgroup::"
Expand Down

0 comments on commit f4a8899

Please sign in to comment.