tools: support ubuntu 24.04 #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ubuntu environment build | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'stable' | |
- 'beta' | |
- 'release/**' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build_and_test: | |
name: Build and Test Ubuntu | |
runs-on: [runs-on,runner=8cpu-linux-x64,"image=ubuntu24-full-x64","run-id=${{ github.run_id }}"] | |
steps: | |
- id: date | |
name: Set Date as Tag | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- id: meta | |
name: Set Image Metadata | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
px4/px4-dev | |
ghcr.io/px4/px4-dev | |
tags: | | |
type=schedule,pattern={{date 'YYY-MM-DD'}} | |
- name: Build Docker Image | |
uses: docker/build-push-action@v6 | |
with: | |
push: false | |
load: true | |
tags: ${{ steps.meta.outputs.tags }} | |
file: ./Tools/container/Dockerfile | |
- name: Test Docker Works | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: ${{ steps.meta.outputs.labels }} | |
run: echo "hello world" | |
- name: Setup tmate session | |
if: ${{ failure() }} | |
uses: mxschmitt/action-tmate@v3 |