Skip to content

Commit

Permalink
Add $BRANCH and $FLAVOR env vars (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
lantz authored Feb 11, 2021
1 parent fb7a1f3 commit 5972b76
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
flavor: [focal64server, bionic64server, xenial64server, xenial32server]
branch: [master, 2.3.0]
flavor: [focal64server, bionic64server, xenial64server, xenial32server]
env:
BRANCH: ${{ matrix.branch }}
FLAVOR: ${{ matrix.flavor }}
steps:
- name: Set up Python
uses: actions/setup-python@v2
Expand All @@ -33,7 +36,7 @@ jobs:
- name: Build Ubuntu ${{ matrix.flavor }} VM
run: |
python mininet/util/vm/build.py -v -b master -z --nokvm ${{ matrix.flavor }}
(pushd mn* && sha256sum * > sha256sum-$${{ matrix.flavor }}.txt)
(pushd mn* && sha256sum * > sha256sum-$BRANCH-$FLAVOR.txt)
- name: Upload Mininet VM
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 5972b76

Please sign in to comment.