Fixed C/C++ CI workflow. #14
This file contains hidden or 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: C/C++ CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build-windows-vs: | |
| name: build-windows-vs | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Compile with VS 2022 | |
| shell: cmd | |
| run: ${{ '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" && msbuild' }} | |
| working-directory: 'likespro.eth - UNIVERSAL' | |
| - name: Run | |
| run: | | |
| ".\x64\Release\likespro.eth - UNIVERSAL.exe" | |
| shell: cmd | |
| - name: Upload executable | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: windows | |
| path: | | |
| ".\x64\Release\likespro.eth - UNIVERSAL.exe" | |
| build-mac-and-ubuntu: | |
| runs-on: ${{matrix.os}} | |
| strategy: | |
| matrix: | |
| os: [macos-latest, ubuntu-latest] | |
| name: 'build-${{matrix.os}}' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Compile with GCC | |
| run: | | |
| g++ -std=c++17 'likespro.eth - UNIVERSAL/likespro.eth - UNIVERSAL.cpp' -o 'likespro.eth - UNIVERSAL.o' | |
| - name: Run | |
| run: | | |
| './likespro.eth - UNIVERSAL.o' | |
| shell: bash | |
| - name: Upload executable | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{matrix.os}} | |
| path: | | |
| 'likespro.eth - UNIVERSAL.o' |