Skip to content
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
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/2-bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: 🐛 Bug Report
description: Report an issue that should be fixed
labels: [bug]
body:
- type: markdown
attributes:
value: |
Thank you for submitting a bug report. It helps make meso better.

Make sure you are running the latest version of meso.
The bug you are experiencing may already have been fixed.

Please try to include as much information as possible.

- type: input
attributes:
label: What version of meso is running?
description: Check the version in your Cargo.toml
- type: input
attributes:
label: What platform is your computer?
description: |
For MacOS and Linux: copy the output of `uname -mprs`
For Windows: copy the output of `"$([Environment]::OSVersion | ForEach-Object VersionString) $(if ([Environment]::Is64BitOperatingSystem) { "x64" } else { "x86" })"` in the PowerShell console
- type: textarea
attributes:
label: What steps can reproduce the bug?
description: Explain the bug and provide a code snippet that can reproduce it.
validations:
required: true
- type: textarea
attributes:
label: What is the expected behavior?
description: If possible, please provide text instead of a screenshot.
- type: textarea
attributes:
label: What do you see instead?
description: If possible, please provide text instead of a screenshot.
- type: textarea
attributes:
label: Additional information
description: Is there anything else you think we should know?
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/3-feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 🚀 Feature Request
description: Suggest an idea, feature, or enhancement
labels: [enhancement]
body:
- type: markdown
attributes:
value: |
Thank you for submitting an idea. It helps make meso better.
- type: textarea
attributes:
label: What is the problem this feature would solve?
validations:
required: true
- type: textarea
attributes:
label: What is the feature you are proposing to solve the problem?
validations:
required: true
- type: textarea
attributes:
label: What alternatives have you considered?
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/4-docs-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 📗 Documentation Issue
description: Tell us if there is missing or incorrect documentation
labels: [docs]
body:
- type: markdown
attributes:
value: |
Thank you for submitting a documentation request. It helps make meso better.
- type: dropdown
attributes:
label: What is the type of issue?
multiple: true
options:
- Documentation is missing
- Documentation is incorrect
- Documentation is confusing
- Example code is not working
- Something else
- type: textarea
attributes:
label: What is the issue?
validations:
required: true
- type: textarea
attributes:
label: Where did you find it?
description: If possible, please provide the URL(s) where you found this issue.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: true
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "cargo" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
5 changes: 5 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# What does this PR do?
- [ ] Documentation
- [ ] Code changes

# How did you verify your code works?
101 changes: 101 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: CI

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

permissions:
contents: read

env:
RUSTFLAGS: -Dwarnings

jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- platform: macos-latest
args: "--target aarch64-apple-darwin"
rust_targets: "aarch64-apple-darwin"
label: "macos-arm64"

- platform: macos-latest
args: "--target x86_64-apple-darwin"
rust_targets: "x86_64-apple-darwin"
label: "macos-intel"

- platform: windows-latest
args: ""
rust_targets: ""
label: "windows-x64"

- platform: ubuntu-22.04
args: ""
rust_targets: ""
label: "linux-x64"

- platform: ubuntu-24.04
args: ""
rust_targets: ""
label: "linux-x64"

runs-on: ${{ matrix.platform}}

steps:
- uses: actions/checkout@v4

- name: install dependencies (ubuntu)
if: matrix.platform == 'ubuntu-22.04' || matrix.platform == 'ubuntu-24.04'
run: |
sudo apt-get update
sudo apt-get install -y \
libasound2-dev \
libwebkit2gtk-4.1-dev \
libayatana-appindicator3-dev \
libgtk-3-dev \
librsvg2-dev \
patchelf

- name: install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.rust_targets }}

- name: Install wasm target + trunk
run: |
rustup target add wasm32-unknown-unknown
cargo install --locked trunk

- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"

- name: build (all targets)
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

clippy:
name: Clippy
runs-on: ubuntu-latest
permissions: write-all
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@clippy
- run: cargo install clippy-sarif sarif-fmt
- run: rustup component add --toolchain stable-x86_64-unknown-linux-gnu clippy
- run: cargo clippy
--all-features
--message-format=json
-- -Dclippy::all -Dclippy::pedantic | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
continue-on-error: true
- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: rust-clippy-results.sarif
wait-for-processing: true
30 changes: 30 additions & 0 deletions .github/workflows/gh-page-unstable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Github Pages (Unstable)

on:
workflow_dispatch:
push:
branches:
- main

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: "latest"

- run: mdbook build book

- name: Publish book
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages-unstable
publish_dir: ./book/book
29 changes: 29 additions & 0 deletions .github/workflows/gh-page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Github Pages

on:
workflow_dispatch:
push:
tags:
- "*"

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: "latest"

- run: mdbook build book

- name: Publish book
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/book
77 changes: 77 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Release

on:
release:
types: [published]

permissions:
contents: write

env:
RUSTFLAGS: -Dwarnings

jobs:
publish:
strategy:
fail-fast: false
matrix:
include:
- platform: macos-latest
rust_targets: "aarch64-apple-darwin"
args: "--target aarch64-apple-darwin"

- platform: macos-latest
rust_targets: "x86_64-apple-darwin"
args: "--target x86_64-apple-darwin"

- platform: windows-latest
rust_targets: ""
args: ""

- platform: ubuntu-22.04
rust_targets: ""
args: ""

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4

- name: Install Linux dependencies
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y \
libasound2-dev \
libwebkit2gtk-4.1-dev \
libayatana-appindicator3-dev \
libgtk-3-dev \
librsvg2-dev \
patchelf

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.rust_targets }}

- name: Install wasm target + trunk
run: |
rustup target add wasm32-unknown-unknown
cargo install --locked trunk

- name: Cache Rust
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"

- name: Build & Upload Release Assets
uses: tauri-apps/tauri-action@v0
with:
tagName: ${{ github.event.release.tag_name }}
releaseName: ${{ github.event.release.name }}
releaseBody: ${{ github.event.release.body }}
releaseDraft: false
prerelease: ${{ github.event.release.prerelease }}
args: ${{ matrix.args }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions book/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
book
11 changes: 11 additions & 0 deletions book/book.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[book]
authors = ["Cameron Howell"]
language = "en"
src = "src"

[output.html]
default-theme = "mocha"
preferred-dark-theme = "mocha"
git-repository-url = "https://github.com/crhowell3/meso"
edit-url-template = "https://github.com/crhowell3/meso/edit/main/book/{path}"
additional-css = ["./theme/catppuccin.css"]
9 changes: 9 additions & 0 deletions book/src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# meso

**meso** is an open-source graphical desktop weather dashboard for viewing NWS/SPC
products for a given location.

## Contributing

Meso is free and open source. You can find the source code as well as
report issues and create feature requests on [GitHub](https://github.com/crhowell3/meso).
Loading
Loading