Compare commits
2 commits
cdf3d3a805
...
e8312959c3
Author | SHA1 | Date | |
---|---|---|---|
|
e8312959c3 | ||
|
1df75055df |
2 changed files with 31 additions and 20 deletions
45
.github/workflows/ci.yml
vendored
45
.github/workflows/ci.yml
vendored
|
@ -1,6 +1,10 @@
|
||||||
on: [push, pull_request, create]
|
on: [push, pull_request, create]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
env:
|
||||||
|
CARGO_PROFILE_TEST_BUILD_OVERRIDE_DEBUG: true
|
||||||
|
CARGO_PROFILE_dev_OPT_LEVEL: 0
|
||||||
|
RUSTFLAGS: ""
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -11,25 +15,28 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
- run: cargo test --all-features
|
- run: cargo test --no-default-features
|
||||||
#- name: Assemble fat jar
|
- name: Install libdbus on Ubuntu
|
||||||
# run: ./gradlew shadowJar
|
if: matrix.os == 'ubuntu-latest'
|
||||||
#- name: Upload jar as artifact
|
run: |
|
||||||
# uses: actions/upload-artifact@v4
|
sudo apt-get update
|
||||||
# with:
|
sudo apt-get install -y libdbus-1-dev
|
||||||
# name: software-challenge-gui-${{ github.sha }}-${{ matrix.os }}
|
- run: cargo build --release
|
||||||
# path: build/*.jar
|
- uses: actions/upload-artifact@v4
|
||||||
build-arm:
|
with:
|
||||||
runs-on: ${{ matrix.os }}
|
name: mostr_${{ github.sha }}_${{ matrix.os }}
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
path: target/release/mostr
|
||||||
strategy:
|
#build-arm:
|
||||||
matrix:
|
# runs-on: ${{ matrix.os }}
|
||||||
os: [macos-latest-large]
|
# if: startsWith(github.ref, 'refs/tags/')
|
||||||
jdk: [11]
|
# strategy:
|
||||||
steps:
|
# matrix:
|
||||||
- uses: actions/checkout@v4
|
# os: [macos-latest-large]
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
# jdk: [11]
|
||||||
- run: cargo test --all-features
|
# steps:
|
||||||
|
# - uses: actions/checkout@v4
|
||||||
|
# - uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
# - run: cargo test --all-features
|
||||||
#release:
|
#release:
|
||||||
# needs: [build, build-arm]
|
# needs: [build, build-arm]
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
|
|
@ -23,7 +23,7 @@ colog = "1.3"
|
||||||
colored = "2.1"
|
colored = "2.1"
|
||||||
rustyline = { git = "https://github.com/xeruf/rustyline", rev = "465b14d" }
|
rustyline = { git = "https://github.com/xeruf/rustyline", rev = "465b14d" }
|
||||||
# OS-Specific Abstractions
|
# OS-Specific Abstractions
|
||||||
keyring = { version = "3", features = ["apple-native", "windows-native", "linux-native-sync-persistent", "crypto-rust"] }
|
keyring = "3"
|
||||||
directories = "5.0"
|
directories = "5.0"
|
||||||
whoami = "1.5"
|
whoami = "1.5"
|
||||||
# slint = "1.8"
|
# slint = "1.8"
|
||||||
|
@ -38,3 +38,7 @@ nostr-sdk = { git = "https://github.com/rust-nostr/nostr", rev = "e82bc787bdd849
|
||||||
tokio = { version = "1.41", features = ["rt", "rt-multi-thread", "macros", "io-std"] }
|
tokio = { version = "1.41", features = ["rt", "rt-multi-thread", "macros", "io-std"] }
|
||||||
chrono-english = "0.1"
|
chrono-english = "0.1"
|
||||||
linefeed = "0.6"
|
linefeed = "0.6"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = ["persistence"]
|
||||||
|
persistence = ["keyring/apple-native", "keyring/windows-native", "keyring/linux-native-sync-persistent", "keyring/crypto-rust"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue