fix: the generator wrote nothing, into the wrong directory #35
Workflow file for this run
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
| # Binding CI - Simple Template | |
| # This template is for .NET bindings. | |
| # Copy this file to your repository as `.github/workflows/CI.yml` and customize the inputs below. | |
| name: CI | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| publish-artifacts: | |
| description: 'Publish artifacts' | |
| required: false | |
| type: boolean | |
| default: false | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| ci: | |
| uses: EvergineTeam/Evergine.Bindings/.github/workflows/binding-common-ci.yml@v1 | |
| with: | |
| generator-project: "CesiumGen/CesiumGen.csproj" | |
| generator-name: "CesiumGen" | |
| binding-project: "Evergine.Bindings.CesiumNative/Evergine.Bindings.CesiumNative.csproj" | |
| target-framework: "net10.0" | |
| dotnet-version: "10.x" | |
| # Windows, because cesium-native-api.h includes <stdint.h> and <stddef.h> and libclang | |
| # cannot resolve those on ubuntu-latest, which is where this ran until now. | |
| # | |
| # Measured, not inferred. Run 30719935892 on main reported success and its log says: | |
| # | |
| # error: 'stdint.h' file not found | |
| # Analyzed 0 functions | |
| # Output path: .../CesiumGen/Evergine.Bindings.CesiumNative/Generated | |
| # Generation complete! | |
| # | |
| # Zero functions, written into a directory that is not the one the package packs, and a | |
| # green run. The two faults were hiding each other: had the path been right, that run | |
| # would have replaced 169 committed P/Invokes with none and shipped an empty binding. | |
| # The path bug is the only reason it did not. Both are fixed -- the parse is fatal now | |
| # and the output path is anchored on binding.yml -- so neither can cover for the other. | |
| runner-os: "windows-latest" | |
| runtime-identifier: "win-x64" | |
| build-configuration: "Release" | |
| nuget-artifacts: ${{ inputs.publish-artifacts || false }} | |
| revision: ${{ github.run_number }} |