Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaw committed Oct 8, 2024
1 parent 63ea03f commit 31d8b91
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 47 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,20 @@ jobs:
# run: sed -i "s/__PACKAGE_VERSION__/$(echo $GITHUB_REF | cut -d '/' -f 3)/g" packages/ts/deno.json \
# && sed -i "s/__PACKAGE_VERSION__/$(echo $GITHUB_REF | cut -d '/' -f 3)/g" packages/rust/Cargo.toml
run: |
sed -i "s/__PACKAGE_VERSION__/2.5.6/g" packages/ts/deno.json
sed -i "s/__PACKAGE_VERSION__/2.5.6/g" packages/rust/Cargo.toml
sed -i "s/__PACKAGE_VERSION__/2.5.7/g" packages/ts/deno.json
sed -i "s/__PACKAGE_VERSION__/2.5.7/g" packages/rust/Cargo.toml
- name: Setup Buf
uses: bufbuild/buf-setup-action@main
with:
github_token: ${{ github.token }}
- name: Generate code
run: buf generate
- name: Copy license
run: cp LICENSE packages/ts && cp LICENSE packages/rust
- name: Copy license & README
run: |
cp LICENSE packages/ts
cp LICENSE packages/rust
cp README.md packages/ts
cp README.md packages/rust
- name: Upload Rust code
uses: actions/upload-artifact@v4
with:
Expand Down
63 changes: 20 additions & 43 deletions packages/ts/mod.ts
Original file line number Diff line number Diff line change
@@ -1,43 +1,20 @@
import * as Admin from "./lib/admin_pb.ts";
import * as AppOnly from "./lib/apponly_pb.ts";
import * as ATAK from "./lib/atak_pb.ts";
import * as CannedMessages from "./lib/cannedmessages_pb.ts";
import * as Channel from "./lib/channel_pb.ts";
import * as ClientOnly from "./lib/clientonly_pb.ts";
import * as Config from "./lib/config_pb.ts";
import * as ConnectionStatus from "./lib/connection_status_pb.ts";
import * as LocalOnly from "./lib/localonly_pb.ts";
import * as Mesh from "./lib/mesh_pb.ts";
import * as ModuleConfig from "./lib/module_config_pb.ts";
import * as Mqtt from "./lib/mqtt_pb.ts";
import * as PaxCount from "./lib/paxcount_pb.ts";
import * as Portnums from "./lib/portnums_pb.ts";
import * as PowerMon from "./lib/powermon_pb.ts";
import * as RemoteHardware from "./lib/remote_hardware_pb.ts";
import * as Rtttl from "./lib/rtttl_pb.ts";
import * as StoreForward from "./lib/storeforward_pb.ts";
import * as Telemetry from "./lib/telemetry_pb.ts";
import * as Xmodem from "./lib/xmodem_pb.ts";

export const Protobuf = {
Admin,
AppOnly,
ATAK,
CannedMessages,
Channel,
ClientOnly,
Config,
ConnectionStatus,
LocalOnly,
Mesh,
ModuleConfig,
Mqtt,
PaxCount,
Portnums,
PowerMon,
RemoteHardware,
Rtttl,
StoreForward,
Telemetry,
Xmodem,
};
export * as Admin from "./lib/admin_pb.ts";
export * as AppOnly from "./lib/apponly_pb.ts";
export * as ATAK from "./lib/atak_pb.ts";
export * as CannedMessages from "./lib/cannedmessages_pb.ts";
export * as Channel from "./lib/channel_pb.ts";
export * as ClientOnly from "./lib/clientonly_pb.ts";
export * as Config from "./lib/config_pb.ts";
export * as ConnectionStatus from "./lib/connection_status_pb.ts";
export * as LocalOnly from "./lib/localonly_pb.ts";
export * as Mesh from "./lib/mesh_pb.ts";
export * as ModuleConfig from "./lib/module_config_pb.ts";
export * as Mqtt from "./lib/mqtt_pb.ts";
export * as PaxCount from "./lib/paxcount_pb.ts";
export * as Portnums from "./lib/portnums_pb.ts";
export * as PowerMon from "./lib/powermon_pb.ts";
export * as RemoteHardware from "./lib/remote_hardware_pb.ts";
export * as Rtttl from "./lib/rtttl_pb.ts";
export * as StoreForward from "./lib/storeforward_pb.ts";
export * as Telemetry from "./lib/telemetry_pb.ts";
export * as Xmodem from "./lib/xmodem_pb.ts";

0 comments on commit 31d8b91

Please sign in to comment.