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]
|
||||
jobs:
|
||||
build:
|
||||
env:
|
||||
CARGO_PROFILE_TEST_BUILD_OVERRIDE_DEBUG: true
|
||||
CARGO_PROFILE_dev_OPT_LEVEL: 0
|
||||
RUSTFLAGS: ""
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
@ -11,25 +15,28 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: cargo test --all-features
|
||||
#- name: Assemble fat jar
|
||||
# run: ./gradlew shadowJar
|
||||
#- name: Upload jar as artifact
|
||||
# uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# name: software-challenge-gui-${{ github.sha }}-${{ matrix.os }}
|
||||
# path: build/*.jar
|
||||
build-arm:
|
||||
runs-on: ${{ matrix.os }}
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest-large]
|
||||
jdk: [11]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: cargo test --all-features
|
||||
- run: cargo test --no-default-features
|
||||
- name: Install libdbus on Ubuntu
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libdbus-1-dev
|
||||
- run: cargo build --release
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: mostr_${{ github.sha }}_${{ matrix.os }}
|
||||
path: target/release/mostr
|
||||
#build-arm:
|
||||
# runs-on: ${{ matrix.os }}
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
# strategy:
|
||||
# matrix:
|
||||
# os: [macos-latest-large]
|
||||
# jdk: [11]
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4
|
||||
# - uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
# - run: cargo test --all-features
|
||||
#release:
|
||||
# needs: [build, build-arm]
|
||||
# runs-on: ubuntu-latest
|
||||
|
|
|
@ -23,7 +23,7 @@ colog = "1.3"
|
|||
colored = "2.1"
|
||||
rustyline = { git = "https://github.com/xeruf/rustyline", rev = "465b14d" }
|
||||
# OS-Specific Abstractions
|
||||
keyring = { version = "3", features = ["apple-native", "windows-native", "linux-native-sync-persistent", "crypto-rust"] }
|
||||
keyring = "3"
|
||||
directories = "5.0"
|
||||
whoami = "1.5"
|
||||
# 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"] }
|
||||
chrono-english = "0.1"
|
||||
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