Skip to content

Commit

Permalink
Add build workflow (attempt)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDoom committed Mar 22, 2024
1 parent fbf0246 commit cc702e8
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and Release

on:
push:
branches:
- actions

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]

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

- name: Install dependencies
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: |
sudo apt-get update && sudo apt-get install -y cmake libsfml-dev
- name: Install dependencies
if: matrix.os == 'windows-latest'
run: |
choco install cmake sfml -y
- name: Configure and build
run: |
mkdir build && cd build
cmake ..
cmake --build .
- name: Upload executable
uses: actions/upload-artifact@v2
with:
name: ${{ runner.os }}-executable
path: build/src/8ChocChip

0 comments on commit cc702e8

Please sign in to comment.