more action fixes #7
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: Build | |
on: | |
push: | |
jobs: | |
build-project: | |
name: Linux Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install PugiXML | |
run: sudo apt-get install libpugixml-dev | |
- name: Install GLFW | |
run: sudo apt-get install libglfw3-dev | |
- name: Install Assimp | |
run: sudo apt-get install libassimp-dev | |
- name: Checkout | |
uses: actions/checkout@v4.1.2 | |
- name: Configure and Build Project | |
uses: threeal/cmake-action@main | |
with: | |
c-compiler: clang | |
cxx-compiler: clang++ | |
source-dir: ./src | |
- name: Copy assets | |
run: cp -r ./Assets ./src/build/Assets | |
- name: Upload Build Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Linux release | |
path: ./src/build | |
build-project-windows: | |
name: Windows Build | |
runs-on: windows-latest | |
steps: | |
- name: vcpkg build | |
uses: johnwason/vcpkg-action@v6 | |
id: vcpkg | |
with: | |
pkgs: glfw3 assimp pugixml | |
triplet: x64-windows-release | |
token: ${{ github.token }} | |
github-binarycache: true | |
- name: Checkout | |
uses: actions/checkout@v4.1.2 | |
- name: Configure and Build Project | |
uses: threeal/cmake-action@main | |
with: | |
c-compiler: clang | |
cxx-compiler: clang++ | |
source-dir: ./src | |
- name: Copy assets | |
run: cp -r ./Assets ./src/build/Assets | |
- name: Upload Build Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Windows release | |
path: ./src/build |