Skip to content

Commit

Permalink
feat(action): add build test action
Browse files Browse the repository at this point in the history
  • Loading branch information
Lzw655 committed Sep 25, 2024
1 parent 7e15a2d commit 9f8999e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build Test Application

on:
workflow_dispatch:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-22.04

container:
image: ubuntu:22.04
options: --user root

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Update apt and install dependencies
run: |
apt-get update
apt-get install -y gcc gdb cmake make build-essential libsdl2-dev
- name: Build Application
working-directory: ./
run: |
git submodule update --init --recursive
cmake -B ./build & make -C ./build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ignore all dot folders, with below exceptions
.*/
!.github

# VSCode
.vscode/
Expand Down

0 comments on commit 9f8999e

Please sign in to comment.