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
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Build C++

on:
push:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build project
run: |
sudo apt-get update
sudo apt-get install -y -f build-essential g++ cmake
g++ GameDie.cpp -Wall -Werror
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# GameDie

[![Build C++](https://github.com/ChicoState/GameDie/actions/workflows/build.yml/badge.svg)](https://github.com/ChicoState/GameDie/actions/workflows/build.yml)

This repository provides a class that represents a game die, such as the
six-sided dice used in traditional dice game. While the die defaults to
six-sided dice used in traditional dice game. While the die defaults to
six sides, the overloaded constructor allows the developer to customize
any size die (with at least one face). It also keeps track of how many
times a certain face has been rolled so that the fairness of the die
Expand All @@ -23,4 +25,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`