Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: upgrades and workflow fixes #103

Merged
merged 9 commits into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 20 additions & 26 deletions .github/workflows/syrius_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,28 @@ on:
workflow_dispatch:

env:
FLUTTER_VERSION: "3.10.x"
FLUTTER_VERSION: "3.19.x"

jobs:
build-macos:
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Checkout zenon-node-database repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: HyperCore-One/zenon-node-database
path: ./node-db
ref: main
- name: Copy community nodes
run: cp -r ./node-db/rpc-nodes-mainnet.json assets/community-nodes.json
run: cp -r ./node-db/rpc-nodes-mainnet.json ./assets/community-nodes.json
- name: Setup environment
run: |
brew install unzip create-dmg
brew cleanup
- name: Checkout
uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v2.10.0
uses: subosito/flutter-action@v2
with:
flutter-version: ${{env.FLUTTER_VERSION}}
channel: "stable"
Expand All @@ -58,19 +56,17 @@ jobs:
--hdiutil-verbose syrius-alphanet-macos-universal.dmg build/macos/Build/Products/Release/s\ y\ r\ i\ u\ s.app \
syrius-alphanet-macos-universal.dmg build/macos/Build/Products/Release/s\ y\ r\ i\ u\ s.app
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: macos-artifacts
path: syrius-alphanet-macos-universal.dmg
build-windows:
env:
WALLET_CONNECT_PROJECT_ID: ${{ secrets.WC_PROJECT_ID }}
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Checkout zenon-node-database repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: HyperCore-One/zenon-node-database
path: ./node-db
Expand All @@ -79,7 +75,7 @@ jobs:
shell: pwsh
run: Copy-Item .\node-db\rpc-nodes-mainnet.json .\assets\community-nodes.json -Force
- name: Setup Flutter
uses: subosito/flutter-action@v2.10.0
uses: subosito/flutter-action@v2
with:
flutter-version: ${{env.FLUTTER_VERSION}}
channel: "stable"
Expand All @@ -91,21 +87,19 @@ jobs:
flutter build windows --release
- name: Package into zip
run: |
Compress-Archive -Path build\windows\runner\Release\* -DestinationPath .\syrius-alphanet-windows-amd64.zip
Compress-Archive -Path build\windows\x64\runner\Release\* -DestinationPath .\syrius-alphanet-windows-amd64.zip
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: windows-artifacts
path: syrius-alphanet-windows-amd64.zip
build-linux:
env:
WALLET_CONNECT_PROJECT_ID: ${{ secrets.WC_PROJECT_ID }}
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Checkout zenon-node-database repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: HyperCore-One/zenon-node-database
path: ./node-db
Expand All @@ -117,7 +111,7 @@ jobs:
sudo apt update
sudo apt install -y curl clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev unzip xz-utils zip libnotify-dev libayatana-appindicator3-dev
- name: Setup Flutter
uses: subosito/flutter-action@v2.10.0
uses: subosito/flutter-action@v2
with:
flutter-version: ${{env.FLUTTER_VERSION}}
channel: "stable"
Expand All @@ -137,7 +131,7 @@ jobs:
cd build/linux/x64/release/bundle
zip -r ../../../../../syrius-alphanet-linux-amd64.zip *
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: linux-artifacts
path: syrius-alphanet-linux-amd64.zip
Expand All @@ -147,7 +141,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set variables
run: |
echo "SYRIUS_VERSION=${{ github.ref }}" >> $GITHUB_ENV
Expand Down Expand Up @@ -175,15 +169,15 @@ jobs:
- name: Prepare releases directory
run: mkdir releases
- name: Download macOS artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: macos-artifacts
- name: Download Windows artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: windows-artifacts
- name: Download Linux artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: linux-artifacts
- name: Prepare releases
Expand All @@ -197,7 +191,7 @@ jobs:
echo $(sha256sum *)
echo $(sha256sum *) >> SHA256CHECKSUMS.txt
- name: Upload files to a GitHub release
uses: svenstaro/upload-release-action@2.4.1
uses: svenstaro/upload-release-action@2.9.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
release_name: ${{ env.SYRIUS_VERSION }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/syrius_lib_updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
sudo apt update
sudo apt install -y unzip
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Download libznn
uses: robinraju/release-downloader@v1.6
uses: robinraju/release-downloader@v1.9
with:
repository: "zenon-network/go-zenon"
latest: true
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ Learn about the foreign function interface (ffi) [here](https://docs.flutter.dev

Dependencies:

- Flutter: `>=3.10.x`
- Dart: `>=3.0.x`
- Flutter: `>=3.19.x`
- Dart: `>=3.3.x`

Currently supported `<os>`: `windows`, `macos`, `linux`

```bash
git clone https://github.com/zenon-network/syrius.git
flutter pub get
flutter run --dart-define=WC_PROJECT_ID=walletconnect_project_id -d <os>
flutter build --dart-define=WC_PROJECT_ID=walletconnect_project_id <os>
flutter run -d <os>
flutter build <os>
```

## Linux
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/metadata.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ const String gitBranchName = '';
const String gitCommitHash = '';
const String gitCommitMessage = '';
const String gitCommitDate = '';
const String gitOriginUrl = '';
const String gitOriginUrl = '';
Loading