packaging #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main # Adjust branch name as needed | |
jobs: | |
build: | |
runs-on: windows-latest # Choose the appropriate OS for your project | |
steps: | |
- uses: actions/checkout@v2 # Check out your repository | |
- name: Configure Project | |
uses: threeal/[email protected] | |
with: | |
source-dir: third-party | |
- name: Build and Package | |
run: | | |
cd third-party | |
cd build | |
cmake .. | |
cmake --build . --target package # Generate installer | |
cp Project-0.1.0-win64.exe ../Project-0.1.0-win64.exe # Replace with your actual installer name | |
cd .. | |
mv Project-0.1.0-win64.exe build-artifact/ | |
# Upload the artifact | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Project-0.1.0-win64 | |
path: build-artifact/ |