Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extra CI reporting #2673

Merged
merged 1 commit into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ jobs:
os: [arm64-dirty, ubuntu-20.04]
hv: [xen, kvm]
steps:
- name: Starting Report
run: |
echo Git Ref: ${{ github.ref }}
echo GitHub Event: ${{ github.event_name }}
echo Disk usage
df -h
echo Memory
free -m
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
Expand All @@ -29,11 +37,27 @@ jobs:
COMMIT_ID=$(git describe --abbrev=8 --always)
echo "VERSION=0.0.0-pr$PR_ID-$COMMIT_ID" >> $GITHUB_ENV
echo "TAG=evebuild/danger:pr$PR_ID" >> $GITHUB_ENV
- name: Post package report
run: |
echo Disk usage
df -h
echo Memory
free -m
docker system df
docker system df -v
- name: Build EVE
env:
HV: ${{ matrix.hv }}
run: |
make V=1 ROOTFS_VERSION="$VERSION" HV=$HV eve
- name: Post eve build report
run: |
echo Disk usage
df -h
echo Memory
free -m
docker system df
docker system df -v
- name: Export docker container
env:
HV: ${{ matrix.hv }}
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ on:
- "[0-9]+.[0-9]+.[0-9]+"

jobs:
report:
name: Report
runs-on: ${{ matrix.os }}
steps:
- name: ref
run: echo ${{ github.ref }}
- name: event_name
run: echo ${{ github.event_name }}
- name: disk usage
run: df -h
- name: memory
run: free -m
Comment on lines +16 to +23
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think yetus wants 2 additional spaces before those lines.

build:
if: github.event.repository.full_name == 'lf-edge/eve'
runs-on: ${{ matrix.os }}
Expand All @@ -17,6 +29,14 @@ jobs:
matrix:
os: [arm64-secure, ubuntu-20.04, ubuntu-latest]
steps:
- name: Starting Report
run: |
echo Git Ref: ${{ github.ref }}
echo GitHub Event: ${{ github.event_name }}
echo Disk usage
df -h
echo Memory
free -m
- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand Down Expand Up @@ -69,18 +89,42 @@ jobs:
docker system prune -f || :
fi
done
- name: Post package report
run: |
echo Disk usage
df -h
echo Memory
free -m
docker system df
docker system df -v
- name: Build EVE for KVM
# build #1 without push (do not push either unless both can build)
if: ${{ matrix.os != 'ubuntu-latest' }}
run: |
rm -rf dist dist.xen
make -e V=1 HV=kvm eve
mv -f dist dist.xen
- name: Post eve KVM report
run: |
echo Disk usage
df -h
echo Memory
free -m
docker system df
docker system df -v
- name: Build and push EVE for Xen
# since build #1 works, build and push #2
if: ${{ matrix.os != 'ubuntu-latest' }}
run: |
make -e V=1 HV=xen LINUXKIT_PKG_TARGET=push eve
- name: Post eve Xen report
run: |
echo Disk usage
df -h
echo Memory
free -m
docker system df
docker system df -v
- name: Build and push EVE for KVM
# redo build #1 with push
if: ${{ matrix.os != 'ubuntu-latest' }}
Expand Down