Compare commits

...

3 Commits

Author SHA1 Message Date
Aveline 91666cfefb
Merge 0baf6be8b5 into bdd6f4247b 2025-10-02 19:20:10 +02:00
Alex bdd6f4247b
fix: segfault in cGo 2025-10-02 19:15:03 +02:00
Siyuan Miao 0baf6be8b5 chore: generate release automatically 2025-09-25 16:55:04 +00:00
2 changed files with 21 additions and 3 deletions

View File

@ -69,3 +69,23 @@ jobs:
path: |
bin/jetkvm_app
device-tests.tar.gz
release:
runs-on: ubuntu-latest
name: Release
needs: build
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Draft release
uses: softprops/action-gh-release@v2
with:
# need review before making a real release
draft: true
files: bin/jetkvm_app
fail_on_unmatched_files: true
tag_name: ${{ github.ref }}
name: ${{ github.ref }}
generate_release_notes: true

View File

@ -118,7 +118,6 @@ func uiInit(rotation uint16) {
defer cgoLock.Unlock()
cRotation := C.u_int16_t(rotation)
defer C.free(unsafe.Pointer(&cRotation))
C.jetkvm_ui_init(cRotation)
}
@ -350,7 +349,6 @@ func uiDispSetRotation(rotation uint16) (bool, error) {
nativeLogger.Info().Uint16("rotation", rotation).Msg("setting rotation")
cRotation := C.u_int16_t(rotation)
defer C.free(unsafe.Pointer(&cRotation))
C.jetkvm_ui_set_rotation(cRotation)
return true, nil