Skip to content

Commit

Permalink
Add CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
keton committed Feb 23, 2024
1 parent b151775 commit b5f5a4b
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CMake on a single platform

on: [push]

#on:
# push:
# branches: ["master"]
# pull_request:
# branches: ["master"]

permissions:
contents: write

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- name: Configure CMake
run: cmake -S ${{github.workspace}} -B ${{github.workspace}}/build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target pacific_drive_plugin

- name: Package
working-directory: ${{github.workspace}}
run: package.cmd
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: PenDriverPro-Win64-Shipping
path: ${{github.workspace}}/build/Release/profile/*
if-no-files-found: error
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: PenDriverPro-Win64-Shipping.zip

0 comments on commit b5f5a4b

Please sign in to comment.