# Github Actions for NoM repos

**URL:** http://forum.zenon.org/t/github-actions-for-nom-repos/1152
**Category:** ╰  Funding  |  Staging
**Tags:** open
**Created:** [November 29, 2022, 10:54am UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152 "2022-11-29T10:54:26Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![0x3639](http://forum.zenon.org/user_avatar/forum.zenon.org/0x3639/32/1651_2.png) [@0x3639](http://forum.zenon.org/u/0x3639)
#### Post date: [December 29, 2022, 10:55pm UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/41 "2022-12-29T22:55:41Z")

</div>

Awesome. I will test on Mac M1 and Linux tomorrow.

---

<div class="post-metadata">

### Author: ![sol](http://forum.zenon.org/user_avatar/forum.zenon.org/sol/32/1636_2.png) [@sol](http://forum.zenon.org/u/sol)
#### Post date: [December 30, 2022, 1:39am UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/42 "2022-12-30T01:39:14Z")

</div>

I’m not sure how multi-address is supposed to work.

The widget displays a list of all generated addresses but it seems you were trying to display a subset of the addresses?  
I didn’t understand the meaning of the # of 10 indicator at the bottom, since iterating from 1 to 10 doesn’t really change the widget.  
When I reached 11, the widget re-loaded and created 10 new addresses for me?

Edit: Obviously, I didn’t understand what the 1 of 10 meant. If a user wants to add 6 addresses, they increment to 6 then press Add addresses. Is this clear to everyone else?  
The + sign can still be pressed/activated when the user reaches 10, maybe that’s intended?

Maybe we need to have the integer in the “Add addresses” button, such that it clearly tells the user they are about to “Add 6 addresses”.

---

<div class="post-metadata">

### Author: ![sol](http://forum.zenon.org/user_avatar/forum.zenon.org/sol/32/1636_2.png) [@sol](http://forum.zenon.org/u/sol)
#### Post date: [December 30, 2022, 5:22am UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/43 "2022-12-30T05:22:40Z")

</div>

I’ve tested the Windows and Linux releases.  
Both work as expected, though I still encountered an issue with Linux.

> **Display Driver Error**
>
> I had forgotten about this issue, but the Linux Release build crashes often since I’m using nouveau display drivers instead of nvidia.  
> Error: `syrius: ../nouveau/pushbuf.c:730: nouveau_pushbuf_data: Assertion `kref' failed.`  
> If it impacts enough users, I’ll try to find a workaround, though I [may not be successful](https://github.com/rstudio/rstudio/issues/3781#issuecomment-434764375).

Despite all that, the Debug version of the app runs well-ish (it stutters a bit) while the Release build is snappy.

I’ve made several changes to the cicd branch and will submit a PR with a detailed summary after some MacOS testing with 0x.

---

<div class="post-metadata">

### Author: ![0x3639](http://forum.zenon.org/user_avatar/forum.zenon.org/0x3639/32/1651_2.png) [@0x3639](http://forum.zenon.org/u/0x3639)
#### Post date: [December 30, 2022, 1:31pm UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/44 "2022-12-30T13:31:49Z")

</div>

I just setup on a clean Ubuntu 22.04 VM and have 2 errors.

```auto
(syrius:4410): Gtk-WARNING **: 07:21:29.297: Error loading icon from file 'linux/resources/app_icon.png':
	Failed to open file “linux/resources/app_icon.png”: No such file or directory
Starting znnd.
current time is 2022-12-30 07:21:33
version: v0.0.4-libznn
git-commit-hash: 7e9c440f7e5e368efbade77ca900efa1219af0d4
znnd will use at most 4 cpu-cores
WARN[12-30|07:21:33] Config file missing: you can provide a data path using the --data flag or provide a config file using the --config flag module=zenon configPath=/home/x3639/.znn/config.json

```

And when I try to create a json export of the keyfile, I get this error.

```auto
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: [FileSystemException: Directory listing failed, path = '/home/x3639/.pub-cache/' (OS Error: No such file or directory, errno = 2), #0 _Directory._fillWithDirectoryListing (dart:io-patch/directory_patch.dart:42)
#1 _Directory.listSync (dart:io/directory_impl.dart:243)
#2 initArgon2.<anonymous closure> (package:znn_sdk_dart/src/argon2/argon2.dart:30)
#3 Argon2FfiFlutter._loadLib (package:argon2_ffi_base/src/argon2_ffi_impl.dart:160)
#4 new Argon2FfiFlutter (package:argon2_ffi_base/src/argon2_ffi_impl.dart:92)
#5 initArgon2 (package:znn_sdk_dart/src/argon2/argon2.dart:15)
#6 KeyFile._encryptEntropy (package:znn_sdk_dart/src/wallet/keyfile.dart:95)
<asynchronous suspension>
#7 saveKeyStoreFunction (package:znn_sdk_dart/src/wallet/manager.dart:22)
<asynchronous suspension>
]
#0 KeyStoreManager.saveKeyStore.<anonymous closure> (package:znn_sdk_dart/src/wallet/manager.dart:54)
#1 _RootZone.runUnaryGuarded (dart:async/zone.dart:1586)
#2 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339)
#3 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271)
#4 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:774)
#5 _StreamController._add (dart:async/stream_controller.dart:648)
#6 _StreamController.add (dart:async/stream_controller.dart:596)
#7 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192)

```

This is how to recreate the error. I was able to replicate it as `sudo` also.

https://www.youtube.com/embed/X-0GjYsBTUk?feature=oembed&wmode=opaque

---

<div class="post-metadata">

### Author: ![sol](http://forum.zenon.org/user_avatar/forum.zenon.org/sol/32/1636_2.png) [@sol](http://forum.zenon.org/u/sol)
#### Post date: [December 30, 2022, 7:42pm UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/45 "2022-12-30T19:42:05Z")

</div>

I see two warnings:

1. failed to open a .png file
2. config file missing

For #1, I’ve opted [to remove that check](https://github.com/zenon-network/syrius/commit/6415c3ff6b12bb3014ee48f069be35ecd99773d8) until we have a proper mechanism to display the icon. My repo also has Github Actions so you may try the build [here](https://github.com/Sol-Sanctum/syrius/releases).

I don’t believe #2 is an issue; the wallet experience recovers gracefully when the config file is not initially present.

As for the KeyStore issue, I’ve submitted [a PR to aliencoder’s znn\_sdk\_dart](https://github.com/alienc0der/znn_sdk_dart/pull/1) repo.

---

<div class="post-metadata">

### Author: ![0x3639](http://forum.zenon.org/user_avatar/forum.zenon.org/0x3639/32/1651_2.png) [@0x3639](http://forum.zenon.org/u/0x3639)
#### Post date: [December 31, 2022, 7:03pm UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/46 "2022-12-31T19:03:31Z")

</div>

Just wanted to let you know that I tried to install the new release on my Mac M1 and experienced the same issue with not being able to export the .json key. I stopped testing at that point.

---

<div class="post-metadata">

### Author: ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)
#### Post date: [January 6, 2023, 8:11am UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/47 "2023-01-06T08:11:11Z")

</div>

@0x3639 I’ll check everything you’ve reported again and try to fix all the issues.

@sol I responded to your PR on Github. I think it’s better to verify if the `.pub-cache` directory exists instead of throwing an error.

---

<div class="post-metadata">

### Author: ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)
#### Post date: [January 6, 2023, 8:40am UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/48 "2023-01-06T08:40:15Z")

</div>

I’ve added the [fix](https://github.com/alienc0der/znn_sdk_dart/commit/78210a4c3e5eafe6648c7234f6b5d524b310368a).

---

<div class="post-metadata">

### Author: ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)
#### Post date: [January 6, 2023, 10:59pm UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/49 "2023-01-06T22:59:22Z")

</div>

The problem with the missing icon on Linux is that it doesn’t find it at this path `linux/resources/app_icon.png`. I’ll try to fix it by using a relative path.

---

<div class="post-metadata">

### Author: ![sol](http://forum.zenon.org/user_avatar/forum.zenon.org/sol/32/1636_2.png) [@sol](http://forum.zenon.org/u/sol)
#### Post date: [January 6, 2023, 11:29pm UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/50 "2023-01-06T23:29:50Z")

</div>

I opted to [remove the configuration](https://github.com/zenon-network/syrius/commit/6415c3ff6b12bb3014ee48f069be35ecd99773d8) until we have a proper .desktop file in place.  
I don’t think we’ll be able to devise [a universal Linux solution](https://github.com/flutter/flutter/issues/53229#issuecomment-604224419) without package management, though we may be able to fix the window icon, as per [this post](https://github.com/flutter/flutter/issues/53229#issuecomment-1196394785).

The main reasons for this:

1. ELF files don’t natively support icons
2. .desktop files don’t typically support relative paths

---

<div class="post-metadata">

### Author: ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)
#### Post date: [January 8, 2023, 11:15am UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/51 "2023-01-08T11:15:04Z")

</div>

Unfortunately [that post](https://github.com/flutter/flutter/issues/53229#issuecomment-1196394785) doesn’t work, [neither this one](https://github.com/flutter/flutter/issues/53229#issuecomment-1183703786).

The only way to get it showing properly is to have a dynamic reference to the asset’s directory at runtime.

Also I think by properly packaging the app we’ll be able to solve the issue without using the `gtk_window_set_icon` method.

---

<div class="post-metadata">

### Author: ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)
#### Post date: [January 9, 2023, 10:14pm UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/52 "2023-01-09T22:14:03Z")

</div>

Tried to use this [library](https://github.com/leanflutter/flutter_distributor) to create `DMG` `exe` and `deb`, but without success.

---

<div class="post-metadata">

### Author: ![georgezgeorgez](http://forum.zenon.org/letter_avatar_proxy/v4/letter/g/eada6e/32.png) [@georgezgeorgez](http://forum.zenon.org/u/georgezgeorgez)
#### Post date: [January 22, 2023, 6:03am UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/53 "2023-01-22T06:03:09Z")

</div>

Took a look at the workflow file. I think we will want to add testing before creating a release.

---

<div class="post-metadata">

### Author: ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)
#### Post date: [January 22, 2023, 10:47am UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/54 "2023-01-22T10:47:46Z")

</div>

Do you mean QA testing, [code coverage](https://github.com/marketplace?category=&query=code+coverage) or both?

I’ve noticed that some Zenon releases have also an additional `alpha` tag appended - we can do the same.

---

<div class="post-metadata">

### Author: ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)
#### Post date: [January 23, 2023, 9:09am UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/55 "2023-01-23T09:09:55Z")

</div>

We can use [this action](https://github.com/marketplace/actions/dart-flutter-package-analyzer) for `syrius` and `znn_sdk_dart`.

For `go-zenon` I’ve added `govulncheck-action`, but now it’s ([Commented out govulncheck · zenon-network/go-zenon@344e080 · GitHub](https://github.com/zenon-network/go-zenon/commit/344e08070be9b240852a20f4db58a85ffa9ec60d)).

---

<div class="post-metadata">

### Author: ![georgezgeorgez](http://forum.zenon.org/letter_avatar_proxy/v4/letter/g/eada6e/32.png) [@georgezgeorgez](http://forum.zenon.org/u/georgezgeorgez)
#### Post date: [January 24, 2023, 4:22pm UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/56 "2023-01-24T16:22:18Z")

</div>

The codebase has unit tests and we’ll probably want to continue to add tests. I just wouldn’t want to create downloaded releases through a pipeline unless the pipeline included running tests.

---

<div class="post-metadata">

### Author: ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)
#### Post date: [January 24, 2023, 6:22pm UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/57 "2023-01-24T18:22:20Z")

</div>

I agree, I’ll add unit-testing. Do you see something else worth integrating into the pipeline? I want to finish the `cicd` pipeline and open PRs as soon as possible.

---

<div class="post-metadata">

### Author: ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)
#### Post date: [January 25, 2023, 9:25pm UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/58 "2023-01-25T21:25:13Z")

</div>

Fixed unit-tests and added `version` command in the `Makefile`. [Take a look](https://github.com/alienc0der/go-zenon/tree/cicd).

---

<div class="post-metadata">

### Author: ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)
#### Post date: [January 26, 2023, 6:10pm UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/59 "2023-01-26T18:10:10Z")

</div>

Update: [abort when a test fails and automatically set a version for the release](https://github.com/zenon-network/go-zenon/commit/3467acad3f47ad189cb69feca2e0aeb7e39ae08a).

---

<div class="post-metadata">

### Author: ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)
#### Post date: [January 30, 2023, 3:02pm UTC](http://forum.zenon.org/t/github-actions-for-nom-repos/1152/60 "2023-01-30T15:02:57Z")

</div>

Added [action status badges](https://github.com/alienc0der/syrius/blob/cicd/README.md) in the README and updated [syrius\_library\_updater](https://github.com/alienc0der/syrius/blob/cicd/.github/workflows/syrius_lib_updater.yml) such that it won’t [fail](https://github.com/alienc0der/syrius/actions/runs/4045082445) if changes are not present.

[Previous page](http://forum.zenon.org/t/github-actions-for-nom-repos/1152.md?page=2)

[Next page](http://forum.zenon.org/t/github-actions-for-nom-repos/1152.md?page=4)
