Skip to content
Open
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
46 changes: 10 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,8 @@ jobs:
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install libdbus-1-dev
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
- uses: dtolnay/rust-toolchain@stable
- run: cargo check

test:
name: Test Suite
Expand All @@ -26,32 +20,18 @@ jobs:
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install libdbus-1-dev
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
- uses: dtolnay/rust-toolchain@stable
- run: cargo test

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install libdbus-1-dev
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
components: rustfmt
- run: cargo fmt --all -- --check

clippy:
name: Clippy
Expand All @@ -60,13 +40,7 @@ jobs:
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install libdbus-1-dev
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
- uses: dtolnay/rust-toolchain@stable
with:
command: clippy
args: --all-targets --all-features -- -D warnings
components: clippy
- run: cargo clippy --all-targets --all-features -- -D warnings
16 changes: 9 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,27 @@ jobs:
strategy:
fail-fast: false
matrix:
target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl, x86_64-apple-darwin]
target:
- x86_64-pc-windows-gnu
- x86_64-unknown-linux-musl
- x86_64-apple-darwin
- aarch64-apple-darwin
steps:
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install libdbus-1-dev
- uses: actions/checkout@master
- uses: actions/checkout@v4
- name: Compile and release
uses: rust-build/rust-build.action@latest
uses: rust-build/rust-build.action@v1.4.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUSTTARGET: ${{ matrix.target }}

crates-publish:
name: Crates Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: dtolnay/rust-toolchain@stable
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
22 changes: 22 additions & 0 deletions .run/uplift help.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="uplift help" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
<option name="buildProfileId" value="dev"/>
<option name="command" value="run --package uplift-cli --bin uplift -- --help"/>
<option name="workingDirectory" value="file://$PROJECT_DIR$"/>
<envs>
<env name="RUST_LOG" value="uplift=trace"/>
</envs>
<option name="emulateTerminal" value="true"/>
<option name="channel" value="DEFAULT"/>
<option name="requiredFeatures" value="true"/>
<option name="allFeatures" value="false"/>
<option name="withSudo" value="false"/>
<option name="buildTarget" value="REMOTE"/>
<option name="backtrace" value="SHORT"/>
<option name="isRedirectInput" value="false"/>
<option name="redirectInputPath" value=""/>
<method v="2">
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true"/>
</method>
</configuration>
</component>
22 changes: 22 additions & 0 deletions .run/uplift query.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="uplift query" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
<option name="buildProfileId" value="dev" />
<option name="command" value="run --package uplift-cli --bin uplift -- query" />
<option name="workingDirectory" value="file://$PROJECT_DIR$" />
<envs>
<env name="RUST_LOG" value="uplift=trace,uplift_cli=trace" />
</envs>
<option name="emulateTerminal" value="true" />
<option name="channel" value="DEFAULT" />
<option name="requiredFeatures" value="true" />
<option name="allFeatures" value="false" />
<option name="withSudo" value="false" />
<option name="buildTarget" value="REMOTE" />
<option name="backtrace" value="SHORT" />
<option name="isRedirectInput" value="false" />
<option name="redirectInputPath" value="" />
<method v="2">
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
</method>
</configuration>
</component>
Loading
Loading