diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..0644523 --- /dev/null +++ b/main.cpp @@ -0,0 +1,11 @@ +#include +using namespace std; + +#include "GameDie.h" + +int main(){ + GameDie test; + test.roll(); + cout << "you roll "; + test.get_distribution(); +} \ No newline at end of file diff --git a/main.yml b/main.yml new file mode 100644 index 0000000..e56ba07 --- /dev/null +++ b/main.yml @@ -0,0 +1,23 @@ +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++ main.cpp -std=c++17 -Wall -Wextra -Werror -o firstIO \ No newline at end of file