Skip to content

docs: remove magic constants and int32 casts from README examples #47

docs: remove magic constants and int32 casts from README examples

docs: remove magic constants and int32 casts from README examples #47

Triggered via push March 15, 2026 22:17
Status Failure
Total duration 1m 26s
Artifacts

ci.yml

on: push
Unit Tests & Lint
1m 22s
Unit Tests & Lint
Cross-compile Examples
52s
Cross-compile Examples
E2E Examples (Emulator)
0s
E2E Examples (Emulator)
Release ndkcli
0s
Release ndkcli
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 2 warnings
Cross-compile Examples
Process completed with exit code 2.
Cross-compile Examples: cmd/ndkcli/sensor_workflow.go#L57
cannot use sensorType (variable of type int32) as "github.com/xaionaro-go/ndk/sensor".Type value in argument to mgr.DefaultSensor
Cross-compile Examples: cmd/ndkcli/sensor_gen.go#L133
cannot use _type (variable of type int32) as "github.com/xaionaro-go/ndk/sensor".Type value in argument to obj.GetDefaultSensorEx
Cross-compile Examples: cmd/ndkcli/sensor_gen.go#L120
cannot use _type (variable of type int32) as "github.com/xaionaro-go/ndk/sensor".Type value in argument to obj.DefaultSensor
Cross-compile Examples: cmd/ndkcli/config_gen.go#L535
cannot use screenSize (variable of type int32) as config.ScreenSize value in argument to obj.SetScreenSize
Cross-compile Examples: cmd/ndkcli/config_gen.go#L496
cannot use orientation (variable of type int32) as config.Orientation value in argument to obj.SetOrientation
Cross-compile Examples: examples/nnapi/compilation/main.go#L119
cannot use int32(nnapi.FastSingleAnswer) (constant 1 of type int32) as nnapi.Preference value in argument to compilation.SetPreference
Cross-compile Examples
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-go@v5. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Unit Tests & Lint
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-go@v5. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/