Skip to content

Commit

Permalink
Create gh workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
f44r committed Jun 2, 2024
1 parent f8c092e commit bdef021
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: build

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

env:
BUILD_TYPE: Release

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Cache
id: cache-primes
uses: actions/cache@v4
with:
path: ${{github.workspace}}/lib
key: git-cache

- name: git
run: git submodule update

- name: Configure CMake
run: >
cmake -B ${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DCMAKE_CXX_COMPILER=cl
-DCMAKE_C_COMPILER=cl
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: ls
run: tree /F ${{github.workspace}}/build/Release


- name: result
uses: actions/upload-artifact@v4
with:
name: exe
path: ${{github.workspace}}/build/Release/cpp_story_painter.exe

File renamed without changes.

0 comments on commit bdef021

Please sign in to comment.