Skip to content

Commit 541f8cb

Browse files
authored
Merge pull request #1030 from UC-Davis-molecular-computing/dev
Dev
2 parents 4cb66f8 + 6ba5133 commit 541f8cb

216 files changed

Lines changed: 11787 additions & 8140 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pub"
4+
directory: "/" # Directory of pubspec.yaml
5+
target-branch: "dev"
6+
schedule:
7+
interval: "weekly" # daily, weekly, monthly

.github/workflows/dart.yml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,25 @@ jobs:
88
run_unit_tests:
99
if: github.event.pull_request.draft == false
1010

11-
runs-on: ubuntu-22.04
12-
11+
runs-on: ubuntu-latest
1312
steps:
14-
- name: Setup Dart SDK Step 1
15-
run: sudo apt-get update
16-
- name: Setup Dart SDK Step 2
17-
run: sudo apt-get install apt-transport-https
18-
- name: Setup Dart SDK Step 3
19-
run: sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
20-
- name: Setup Dart SDK Step 4
21-
run: sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
22-
- name: Setup Dart SDK Step 5
23-
run: wget -O /tmp/dart_3.5.4-1_amd64.deb https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.4/linux_packages/dart_3.5.4-1_amd64.deb
24-
- name: Setup Dart SDK Step 6
25-
run: sudo apt install /tmp/dart_3.5.4-1_amd64.deb
26-
- uses: actions/checkout@v4
13+
- name: Checkout branch
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Dart SDK # Using Dart 3.8 to match pubspec.yaml constraint
17+
uses: dart-lang/setup-dart@v1 # https://github.com/dart-lang/setup-dart
18+
with:
19+
sdk: 3.8
20+
2721
- name: Install dependencies
28-
run: PATH="$PATH:/usr/lib/dart/bin" dart pub get
29-
- name: Run tests
30-
run: PATH="$PATH:/usr/lib/dart/bin" dart run build_runner test
22+
run: dart pub get
23+
24+
- name: Run Tests
25+
run: dart run build_runner test
3126

3227
fail_if_pull_request_is_draft:
3328
if: github.event.pull_request.draft == true
34-
runs-on: ubuntu-18.04
29+
runs-on: ubuntu-latest
3530
steps:
3631
- name: Fails in order to indicate that pull request needs to be marked as ready to review and unit tests workflow needs to pass.
3732
run: exit 1

.github/workflows/dart_formatting.yml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,25 @@ jobs:
88
check_formatting:
99
if: github.event.pull_request.draft == false
1010

11-
runs-on: ubuntu-22.04
12-
11+
runs-on: ubuntu-latest
1312
steps:
14-
- name: Setup Dart SDK Step 1
15-
run: sudo apt-get update
16-
- name: Setup Dart SDK Step 2
17-
run: sudo apt-get install apt-transport-https
18-
- name: Setup Dart SDK Step 3
19-
run: sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
20-
- name: Setup Dart SDK Step 4
21-
run: sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
22-
- name: Setup Dart SDK Step 5
23-
run: wget -O /tmp/dart_3.5.4-1_amd64.deb https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.4/linux_packages/dart_3.5.4-1_amd64.deb
24-
- name: Setup Dart SDK Step 6
25-
run: sudo apt install /tmp/dart_3.5.4-1_amd64.deb
26-
- uses: actions/checkout@v4
13+
- name: Checkout branch
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Dart SDK # Using Dart 3.8 to match pubspec.yaml constraint
17+
uses: dart-lang/setup-dart@v1 # https://github.com/dart-lang/setup-dart
18+
with:
19+
sdk: 3.8
20+
2721
- name: Install dependencies
28-
run: PATH="$PATH:/usr/lib/dart/bin" dart pub get
22+
run: dart pub get
23+
2924
- name: Verify formatting
30-
run: PATH="$PATH:/usr/lib/dart/bin" dart format -l 110 --output=none --set-exit-if-changed .
25+
run: dart format -l 110 --output=none --set-exit-if-changed .
3126

3227
fail_if_pull_request_is_draft:
3328
if: github.event.pull_request.draft == true
34-
runs-on: ubuntu-18.04
29+
runs-on: ubuntu-latest
3530
steps:
3631
- name: Fails in order to indicate that pull request needs to be marked as ready to review and formatting workflow needs to pass.
3732
run: exit 1

.github/workflows/gh-pages-dev.yml

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,44 +7,32 @@ on:
77

88
jobs:
99
deploy:
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout dev branch
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
with:
1515
ref: dev
1616

1717
- name: Checkout gh-pages branch
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
with:
2020
ref: gh-pages
2121
path: gh-pages-repo
2222

23-
24-
25-
- name: Setup Dart SDK Step 1
26-
run: sudo apt-get update
27-
- name: Setup Dart SDK Step 2
28-
run: sudo apt-get install apt-transport-https
29-
- name: Setup Dart SDK Step 3
30-
run: sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
31-
- name: Setup Dart SDK Step 4
32-
run: sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
33-
- name: Setup Dart SDK Step 5
34-
run: wget -O /tmp/dart_3.5.4-1_amd64.deb https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.4/linux_packages/dart_3.5.4-1_amd64.deb
35-
- name: Setup Dart SDK Step 6
36-
run: sudo apt install /tmp/dart_3.5.4-1_amd64.deb
23+
- name: Setup Dart SDK # Using Dart 3.8 to match pubspec.yaml constraint
24+
uses: dart-lang/setup-dart@v1 # https://github.com/dart-lang/setup-dart
25+
with:
26+
sdk: 3.8
3727

3828
- name: Install dependencies
39-
run: PATH="$PATH:/usr/lib/dart/bin" dart pub get
29+
run: dart pub get
4030

4131
- name: Install webdev
42-
run: PATH="$PATH:/usr/lib/dart/bin" dart pub global activate webdev
43-
32+
run: dart pub global activate webdev
4433

4534
- name: Build into gh-pages repo
46-
run: PATH="$PATH:/usr/lib/dart/bin" dart pub global run webdev build -o web:gh-pages-repo/dev
47-
35+
run: dart pub global run webdev build -o web:gh-pages-repo/dev
4836

4937
- name: Deploy
5038
uses: peaceiris/actions-gh-pages@v3

.github/workflows/gh-pages.yml

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,46 +7,39 @@ on:
77

88
jobs:
99
deploy:
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-latest
11+
1112
steps:
1213
- name: Checkout main branch
13-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1415

1516
- name: Checkout gh-pages branch
16-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1718
with:
1819
ref: gh-pages
1920
path: gh-pages-repo
2021

22+
- name: Setup Dart SDK # Using Dart 3.8 to match pubspec.yaml constraint
23+
uses: dart-lang/setup-dart@v1 # https://github.com/dart-lang/setup-dart
24+
with:
25+
sdk: 3.8
2126

22-
23-
- name: Setup Dart SDK Step 1
24-
run: sudo apt-get update
25-
- name: Setup Dart SDK Step 2
26-
run: sudo apt-get install apt-transport-https
27-
- name: Setup Dart SDK Step 3
28-
run: sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
29-
- name: Setup Dart SDK Step 4
30-
run: sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
31-
- name: Setup Dart SDK Step 5
32-
run: wget -O /tmp/dart_3.5.4-1_amd64.deb https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.4/linux_packages/dart_3.5.4-1_amd64.deb
33-
- name: Setup Dart SDK Step 6
34-
run: sudo apt install /tmp/dart_3.5.4-1_amd64.deb
3527
- name: Install dependencies
36-
run: PATH="$PATH:/usr/lib/dart/bin" dart pub get
37-
38-
- name: Install webdev
39-
run: PATH="$PATH:/usr/lib/dart/bin" dart pub global activate webdev
28+
run: dart pub get
4029

30+
- name: Activate webdev
31+
run: dart pub global activate webdev
4132

4233
- name: Build into gh-pages repo
43-
run: PATH="$PATH:/usr/lib/dart/bin" dart pub global run webdev build -o web:/tmp/scadnano ; cp -r /tmp/scadnano/* gh-pages-repo
34+
run: dart pub global run webdev build -o web:/tmp/scadnano ; cp -r /tmp/scadnano/* gh-pages-repo
35+
4436
- name: Retrieve version
45-
run: echo "VERSION=$(cat lib/src/constants.dart | grep 'const String CURRENT_VERSION = .*' | grep -oP '\d+\.\d+\.\d+')" >> $GITHUB_ENV
37+
run: echo "VERSION=$(cat lib/src/constants.dart | grep 'const String CURRENT_VERSION = .*' | grep -oP '\d+\.\d+\.\d+')" >> $GITHUB_ENV
38+
4639
- name: Build into gh-pages-repo/VERSION
4740
run: |
4841
if [ "$VERSION" != "" ]; then
49-
PATH="$PATH:/usr/lib/dart/bin" dart pub global run webdev build -o web:gh-pages-repo/v$VERSION
42+
dart pub global run webdev build -o web:gh-pages-repo/v$VERSION
5043
else
5144
echo "::warning deploying VERSION skipped because VERSION number could not be found"
5245
fi

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
release:
1010
name: "Release"
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-latest
1212

1313
steps:
1414
# ...

CONTRIBUTING.md

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -241,23 +241,17 @@ git checkout dev
241241

242242
### Installing Dart
243243

244-
This project requires using Dart version **3.5.4**, not the latest version. Click on a dropdown below for installation instructions for your operating system.
244+
This project requires using the latest Dart version. Click on a dropdown below for installation instructions for your operating system.
245245

246246
<!--TODO: Find a way to use code blocks with syntax highlighting inside <details>-->
247247

248248
<details><summary><strong>Windows</strong></summary>
249249
First, install <a href="https://chocolatey.org/install">Chocolatey</a> if you haven't already. If <code>choco help</code> shows a help menu for using Chocolatey, then you've set it up correctly.
250250

251-
Then, open a shell (cmd/Powershell) with Administrative privileges (go to Start type `cmd`, right-click on "Command Prompt", or type Powershell and right-click on "Powershell"; in both cases pick "Run as administrator") and install Dart 3.5.4:
251+
Then, open a shell (cmd/Powershell) with Administrative privileges (go to Start type `cmd`, right-click on "Command Prompt", or type Powershell and right-click on "Powershell"; in both cases pick "Run as administrator") and install Dart:
252252

253253
<pre>
254-
choco install dart-sdk --version 3.5.4
255-
</pre>
256-
257-
To stop Chocolatey from automatically updating Dart to the latest version, pin it:
258-
259-
<pre>
260-
choco pin --name="'dart-sdk'" --version="'3.5.4'"
254+
choco install dart-sdk
261255
</pre>
262256

263257
</details>
@@ -267,16 +261,10 @@ First, install <a href="https://brew.sh/">Homebrew</a> if you haven't already. I
267261

268262
It may help to run `brew tap dart-lang/dart` first.
269263

270-
Then, install Dart 3.5.4:
271-
272-
<pre>
273-
brew install dart@3.5.4
274-
</pre>
275-
276-
To stop Homebrew from automatically updating Dart to the latest version, pin it:
264+
Then, install Dart:
277265

278266
<pre>
279-
brew pin dart@3.5.4
267+
brew install dart
280268
</pre>
281269

282270
If running `dart` in a terminal now does not work, you may need to follow <a href="https://docs.brew.sh/FAQ#my-mac-apps-dont-find-homebrew-utilities">these instructions</a>.
@@ -292,17 +280,11 @@ wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dea
292280
echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list
293281
</pre>
294282

295-
Then, install Dart 3.5.4:
283+
Then, install Dart:
296284

297285
<pre>
298286
sudo apt-get update
299-
sudo apt-get install dart=3.5.4
300-
</pre>
301-
302-
To stop apt from automatically updating Dart to the latest version, hold it:
303-
304-
<pre>
305-
sudo apt-mark hold dart=3.5.4
287+
sudo apt-get install dart
306288
</pre>
307289

308290
</details>

0 commit comments

Comments
 (0)