Skip to content

Commit

Permalink
Flutter in dev container (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
desmonddak authored Feb 13, 2024
1 parent 52e0433 commit a64dc80
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ The below button will allow you to create a GitHub Codespace with ROHD-HCL alrea

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=621521356)

To run the component Configurator, especially useful for visualizing the RTL output of your component using different parameters:

```shell
cd confapp
flutter run --profile -d web-server --web-hostname=0.0.0.0 --web-port=3000
```

### Cloning and Running the Tests

Once requirements are installed, you can clone and run the test suite:
Expand Down
8 changes: 3 additions & 5 deletions lib/src/parallel_prefix_operations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,9 @@ class ParallelPrefixAdder extends Module {
Logic get out => output('out');

/// Adder constructor
ParallelPrefixAdder(
Logic a,
Logic b,
ParallelPrefix Function(List<Logic>, Logic Function(Logic, Logic))
ppGen) {
ParallelPrefixAdder(Logic a, Logic b,
ParallelPrefix Function(List<Logic>, Logic Function(Logic, Logic)) ppGen,
{super.definitionName}) {
a = addInput('a', a, width: a.width);
b = addInput('b', b, width: b.width);
final u = ppGen(
Expand Down
22 changes: 22 additions & 0 deletions tool/gh_codespaces/install_flutter.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

# Copyright (C) 2023-24 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
#
# install_flutter.sh
# GitHub Codespaces setup: Install Flutter SDK following this Dockerfile recipe:
# https://github.com/appleboy/flutter-docker/blob/master/Dockerfile
# or this git area
# https://github.com/yostane/flutter2-desktop
#
# 2024 February 12
# Author: Desmond Kirkpatrick <[email protected]>

set -euo pipefail

wget -O /tmp/flutter_linux.tar.xz https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.16.9-stable.tar.xz
cd /usr/local
sudo tar -xf /tmp/flutter_linux.tar.xz
echo 'export PATH="$PATH:/usr/local/flutter/bin"' >> ~/.bashrc

rm /tmp/flutter_linux.tar.xz
5 changes: 4 additions & 1 deletion tool/gh_codespaces/run_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ tool/gh_actions/install_dependencies.sh
tool/gh_actions/install_opencadsuite.sh

# Install D3 Schematic viewer
tool/gh_actions/install_d3_hwschematic.sh
tool/gh_actions/install_d3_hwschematic.sh

# Install Flutter
tool/gh_codespaces/install_flutter.sh

0 comments on commit a64dc80

Please sign in to comment.