Skip to content

Commit

Permalink
github: update to ubuntu-latest
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Stewart <christian@aperture.us>
  • Loading branch information
paralin committed Apr 25, 2023
1 parent e747fbe commit 64603a3
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/buildroot-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ on:

jobs:
build:
runs-on: ubuntu-20.04

runs-on: ubuntu-latest
env:
'SKIFF_WORKSPACE': docker
'SKIFF_CONFIG': virt/docker,core/gentoo
steps:
- uses: actions/checkout@v3
- name: Update the submodule
Expand All @@ -29,22 +31,22 @@ jobs:
- name: Clear caches if necessary
run: |
# necessary to save space
if [ ! -f ~/br-cache/ccache-v4 ]; then
if [ ! -f ~/br-cache/ccache-v5 ]; then
echo "Clearing old compiler cache..."
rm -rf ~/br-cache/ccache* || true
mkdir -p ~/br-cache/ccache
touch ~/br-cache/ccache-v4
touch ~/br-cache/ccache-v5
fi
if [ ! -f ~/br-cache/dl-v4 ]; then
if [ ! -f ~/br-cache/dl-v5 ]; then
echo "Clearing old downloads cache..."
rm -rf ~/br-cache/dl* || true
mkdir -p ~/br-cache/dl
touch ~/br-cache/dl-v4
touch ~/br-cache/dl-v5
fi
- name: Install buildroot apt deps
run: |
sudo apt-get install -y libelf-dev python3-magic
sudo apt-get install -y libelf-dev python3-magic python3-flake8
- name: Print help and packages list
run: |
Expand All @@ -56,16 +58,17 @@ jobs:
cd $GITHUB_WORKSPACE
echo "BR2_TOOLCHAIN_EXTERNAL=y" > ./overrides/buildroot/toolchain
- name: Build a Docker container image
- name: Compile the OS
run: |
cd $GITHUB_WORKSPACE
export TERM=xterm
export BR2_CCACHE_DIR=${HOME}/br-cache/ccache
export BR2_DL_DIR=${HOME}/br-cache/dl
export SKIFF_WORKSPACE=docker
export SKIFF_CONFIG=virt/docker,core/gentoo
make -s configure compile check
echo "Compilation complete, building Docker image..."
- name: Build a Docker container image
run: |
cd $GITHUB_WORKSPACE
make cmd/virt/docker/buildimage
sleep 2 # docker sometimes does not tag right away
mkdir -p workflow-artifacts
Expand Down

0 comments on commit 64603a3

Please sign in to comment.