consider all files and give a github workflow
- User
consider all files and give a github workflow
Assistant
I'll help create a GitHub workflow for the android-builder-AOSP-7.1 repository based on the provided context. This workflow will automate building and testing the Docker image.
Here's a GitHub workflow (save as
.github/workflows/docker-build.yml):[Redactedname: Docker Build and Test on: push: branches: [ main, master ] pull_request: branches: [ main, master ] workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Build Docker image run: make - name: Test Docker image run: | mkdir -p test_workdir docker run --rm -v ${{ github.workspace }}/test_workdir:/home/builder/android/workdir mlm-games/aosp_7.1 echo "Container test successful" - name: Login to Docker Hub if: github.event_name != 'pull_request' uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Push to Docker Hub if: github.event_name != 'pull_request' run: | docker push mlm-games/aosp_7.1This workflow:
-
Triggers on:
- Push to main/master branches
- Pull requests to main/master branches
- Manual trigger (workflow_dispatch)
-
Sets up the environment:
- Uses Ubuntu latest runner
- Checks out the code
- Sets up Docker Buildx for better build capabilities
-
Builds the Docker image using the existing Makefile
-
Tests the Docker image by:
- Creating a test directory
- Running a simple test command in the container
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.