Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
niteshbalusu11 authored and losh11 committed Nov 28, 2024
1 parent 8fc1b5f commit 3a8cff7
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build_cshared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,17 @@ jobs:
go mod download
go mod verify
- name: Build mobile RPC
run: |
# Add required header to the generated file
mkdir -p mobile
echo '#include <stdint.h>' > mobile/cgo_utils_generated.go.tmp
cat mobile/cgo_utils_generated.go >> mobile/cgo_utils_generated.go.tmp
mv mobile/cgo_utils_generated.go.tmp mobile/cgo_utils_generated.go
- name: Generate mobile RPC
run: make mobile-rpc

make mobile-rpc
- name: Add required header and build CGO
run: |
# Create temporary file with header
echo '#include <stdint.h>' > temp_header
# Prepend header to the generated file
cat temp_header mobile/cgo_utils_generated.go > mobile/cgo_utils_generated.go.new
mv mobile/cgo_utils_generated.go.new mobile/cgo_utils_generated.go
# Run CGO build
make cgo
- name: Archive mobile build
Expand Down

0 comments on commit 3a8cff7

Please sign in to comment.