Skip to content

Commit ecf000a

Browse files
authored
ci: build and upload artifact (#2)
* ci: build and upload artifact * chore: cargo fmt * chore: clean code * ci: find artifact * Update build.yaml * Update build.yaml * Update build.yaml * Update build.yaml * Update build.yaml * Update build.yaml * Update build.yaml * Update build.yaml * Update build.yaml * Update build.yaml * Update build.yaml * Update build.yaml * Update build.yaml * Update build.yaml * Update build.yaml * Update build.yaml * ci: bulid windows aarch64 * ci: build * ci: build * Update build.yaml * ci: build
1 parent c006a40 commit ecf000a

File tree

5 files changed

+80
-3
lines changed

5 files changed

+80
-3
lines changed

.github/workflows/build.yaml

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Cross-Platform Build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
cross-build:
11+
name: Build ${{ matrix.arch }} on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
include:
17+
# Linux
18+
- os: ubuntu-latest
19+
name: linux
20+
arch: x86_64
21+
target: x86_64-unknown-linux-gnu
22+
- os: ubuntu-latest
23+
name: linux
24+
arch: aarch64
25+
target: aarch64-unknown-linux-gnu
26+
# Windows
27+
- os: windows-latest
28+
name: windows
29+
arch: x86_64
30+
target: x86_64-pc-windows-msvc
31+
# MacOS
32+
- os: macos-latest
33+
name: macos
34+
arch: x86_64
35+
target: x86_64-apple-darwin
36+
- os: macos-latest
37+
name: macos
38+
arch: aarch64
39+
target: aarch64-apple-darwin
40+
steps:
41+
- uses: actions/checkout@v4
42+
- name: Install Rust
43+
uses: actions-rs/toolchain@v1
44+
with:
45+
profile: minimal
46+
toolchain: stable
47+
override: true
48+
target: ${{ matrix.target }}
49+
- name: Install cross-compilation tools
50+
uses: taiki-e/setup-cross-toolchain-action@v1
51+
with:
52+
target: ${{ matrix.target }}
53+
qemu: "9.2"
54+
- uses: actions/cache@v3
55+
with:
56+
path: |
57+
~/.cargo/registry/index/
58+
~/.cargo/registry/cache/
59+
~/.cargo/git/db/
60+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-v1
61+
- name: Check code format
62+
run: cargo fmt --all -- --check
63+
- run: cargo install catppuccin-whiskers
64+
- run: |
65+
cargo build --release
66+
- uses: actions/upload-artifact@v4
67+
with:
68+
path: |
69+
target/${{ matrix.target }}/release/nxshell*
70+
!target/${{ matrix.target }}/release/*.d
71+
!target/${{ matrix.target }}/release/*.pdb
72+
name: nxshell-${{ matrix.name }}-${{ matrix.arch }}
73+
compression-level: 9

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/target
22
**/Cargo.lock
33
.idea
4+
.DS_Store

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ An open-source, cross-platform SSH session manager powered by <a href="https://g
2727
</div>
2828

2929
<div align="center">
30-
<img src="nxshell/assets/imgs/nxshell.png" alt="nxshell" height="500" style="border-radius: 16px;" />
30+
<img src="nxshell/assets/imgs/screenshot.png" alt="nxshell" height="500" style="border-radius: 16px;" />
3131
</div>
3232

3333
### Features ❇️
@@ -48,6 +48,10 @@ An open-source, cross-platform SSH session manager powered by <a href="https://g
4848
- [ ] Autocompletion powered by AI
4949
- [ ] GPU accelerated
5050

51+
### Release 🦀
52+
53+
You can download the binary from the [artifacts page](https://github.com/iamazy/nxshell/actions)
54+
5155
### Acknowledgments ❤️
5256

5357
- [egui_term](https://github.com/Harzu/egui_term): Terminal emulator widget powered by EGUI framework and alacritty
@@ -58,4 +62,4 @@ An open-source, cross-platform SSH session manager powered by <a href="https://g
5862

5963
### License 🚨
6064

61-
<a href="./LICENSE">AGPL 3.0 License</a>
65+
<a href="./LICENSE">AGPL 3.0 License</a>

crates/catppuccin-egui/src/themes.rs

-1
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,3 @@ pub const MOCHA: Theme = Theme {
146146
mantle: Color32::from_rgb(24, 24, 37),
147147
crust: Color32::from_rgb(17, 17, 27),
148148
};
149-
File renamed without changes.

0 commit comments

Comments
 (0)