Update main.yml #10
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: Build Windows/x64 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout Repository with Submodules | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Create Build Directory | |
| run: mkdir _build | |
| - name: Configure with CMake | |
| shell: pwsh | |
| run: | | |
| cd _build | |
| & cmake -A x64 -T ClangCL .. | |
| - name: Build with CMake | |
| shell: pwsh | |
| run: | | |
| cd _build | |
| & cmake --build . --config RelWithDebInfo --parallel | |
| - name: Upload Build Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ectool | |
| path: | | |
| _build/src/RelWithDebInfo/ectool.exe | |
| _build/src/RelWithDebInfo/ectool.pdb | |
| - name: Upload Release AssetBuild Artifacts | |
| uses: actions/upload-release-asset@v4 | |
| with: | |
| name: ectool | |
| path: | | |
| _build/src/RelWithDebInfo/ectool.exe | |
| _build/src/RelWithDebInfo/ectool.pdb | |
| - name: upload windows artifact | |
| uses: actions/upload-release-asset@v4 | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |