forked from panda-re/panda
-
Notifications
You must be signed in to change notification settings - Fork 0
21 lines (16 loc) · 928 Bytes
/
local_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Run directly with act - standard repo-name guards are disabled and runs without self-hosted.
# See .github/workflows/README.md for more details
#
# Note that this action never runs automatically
name: Local
on:
workflow_dispatch:
jobs:
local_build_container:
runs-on: panda-arc
steps:
- uses: actions/checkout@v4 # Clones to $GITHUB_WORKSPACE. NOTE: this requires git > 2.18 (not on ubuntu 18.04 by default) to get .git directory
- name: Build docker container from project root
run: echo $GITHUB_WORKSPACE; cd $GITHUB_WORKSPACE && DOCKER_BUILDKIT=1 docker build --progress=plain --target developer -t panda_local:${{ github.sha }} .
- name: Minimal test of built container # Just test to see if one of our binaries is built
run: docker run --rm "panda_local:${{ github.sha }}" /bin/bash -c 'exit $(/panda/build/arm-softmmu/panda-system-arm -help | grep -q "usage. panda-system-arm")'