Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build C++

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
install:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y -f build-essential g++ cmake
build:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build project
run: |
g++ GameDie.h -std=c++17 -Wall -Wextra -Werror -o GameDie
g++ GameDie.cpp -std=c++17 -Wall -Wextra -Werror -o GameDie

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![Build C++](https://github.com/cmkoschnick/GameDie/actions/workflows/actions.yml/badge.svg)](https://github.com/cmkoschnick/GameDie/actions/workflows/actions.yml)
# GameDie

This repository provides a class that represents a game die, such as the
Expand All @@ -23,4 +24,4 @@ Once built, run the image:

...or run it with a bind mount to the current source code:

`docker run --mount type=bind,source="$(pwd)",target=/usr/src -it cpp-container`
`docker run --mount type=bind,source="$(pwd)",target=/usr/src -it cpp-container`