-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
context: | ||
version: "0.3.3" | ||
|
||
package: | ||
name: serial-monitor-rust | ||
version: ${{ version }} | ||
|
||
source: | ||
- url: https://github.com/hacknus/serial-monitor-rust/archive/refs/tags/v${{ version }}.tar.gz | ||
sha256: 46f8a22100c504e9d7e5231a8e67cb7c1972e7105f61403475d98f3b9ec85abc | ||
|
||
build: | ||
number: 0 | ||
script: | ||
# display the rust version | ||
- rustc --version | ||
- cargo --version | ||
- if: osx | ||
then: | ||
- export MACOSX_DEPLOYMENT_TARGET=10.15 # minimum os version | ||
# build and install serial-monitor-rust | ||
- cargo-bundle-licenses --format yaml --output ${SRC_DIR}/THIRDPARTY.yml | ||
- cargo install --locked --bins --root ${PREFIX} --path . | ||
|
||
requirements: | ||
build: | ||
- if: win | ||
then: | ||
# at least rust 1.82 is required for serial-monitor-rust | ||
- rust=1.82 # required on windows explicitly, on macOS and linux the latest version is already installed | ||
|
||
host: | ||
- cargo-bundle-licenses | ||
- pkg-config | ||
- if: linux | ||
then: | ||
- ${{ compiler('rust') }} | ||
- ${{ compiler('c') }} | ||
- ${{ compiler('cxx') }} | ||
# on linux, egui requires additional dependencies | ||
- conda-forge::libclang | ||
- conda-forge::gtk3 | ||
- conda-forge::libxcb | ||
- conda-forge::libxkbcommon | ||
- conda-forge::openssl | ||
- conda-forge::libudev | ||
|
||
run: | ||
- if: linux | ||
then: | ||
# on linux, egui requires additional dependencies | ||
- conda-forge::libclang | ||
- conda-forge::gtk3 | ||
- conda-forge::libxcb | ||
- conda-forge::libxkbcommon | ||
- conda-forge::openssl | ||
- conda-forge::libudev | ||
|
||
about: | ||
repository: https://github.com/hacknus/serial-monitor-rust | ||
license: GPL-3.0 | ||
summary: A cross-platform serial monitor/plotter written entirely in rust. | ||
extra: | ||
recipe-maintainers: | ||
- hacknus |