Skip to content

Commit

Permalink
feat: add ci (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski authored Apr 11, 2024
1 parent 66991cd commit c9b5ea2
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Build and Upload Artifact

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}

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

- name: Install dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y make
shell: bash

- name: Install dependencies (macOS)
if: matrix.os == 'macos-latest'
run: |
brew install make
shell: bash

- name: Install dependencies (Windows)
if: matrix.os == 'windows-latest'
run: |
choco install make
shell: pwsh

- name: Build project
run: make
shell: bash

- name: Archive production artifacts (Linux)
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v2
with:
name: build-artifacts-linux
path: bin/linux/genie

- name: Archive production artifacts (macOS)
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v2
with:
name: build-artifacts-macos
path: bin/darwin/genie

- name: Archive production artifacts (Windows)
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v2
with:
name: build-artifacts-windows
path: bin/windows/genie.exe

0 comments on commit c9b5ea2

Please sign in to comment.