Skip to content

Commit 9239fe2

Browse files
🚁 Initial commit - SSH Pilot
0 parents  commit 9239fe2

File tree

12 files changed

+4538
-0
lines changed

12 files changed

+4538
-0
lines changed

.github/workflows/build.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: 🚁 Build SSH Pilot
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
tags: [ 'v*' ]
7+
pull_request:
8+
branches: [ main, master ]
9+
10+
jobs:
11+
build:
12+
name: Build Binaries
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version: '1.21'
23+
24+
- name: Make build script executable
25+
run: chmod +x build.sh
26+
27+
- name: Build binaries
28+
run: ./build.sh
29+
30+
- name: Upload Linux AMD64
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: ssh-pilot-linux-amd64
34+
path: builds/ssh-pilot-linux-amd64
35+
retention-days: 30
36+
37+
- name: Upload Linux ARM64
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: ssh-pilot-linux-arm64
41+
path: builds/ssh-pilot-linux-arm64
42+
retention-days: 30
43+
44+
- name: Upload Linux ARM
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: ssh-pilot-linux-arm
48+
path: builds/ssh-pilot-linux-arm
49+
retention-days: 30
50+
51+
- name: Upload macOS AMD64
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: ssh-pilot-darwin-amd64
55+
path: builds/ssh-pilot-darwin-amd64
56+
retention-days: 30
57+
58+
- name: Upload macOS ARM64
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: ssh-pilot-darwin-arm64
62+
path: builds/ssh-pilot-darwin-arm64
63+
retention-days: 30
64+
65+
- name: Upload Windows AMD64
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: ssh-pilot-windows-amd64
69+
path: builds/ssh-pilot-windows-amd64.exe
70+
retention-days: 30
71+
72+
- name: Create GitHub Release
73+
if: startsWith(github.ref, 'refs/tags/v')
74+
uses: softprops/action-gh-release@v2
75+
with:
76+
files: builds/*
77+
generate_release_notes: true
78+
env:
79+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,go,linux,windows
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,go,linux,windows
3+
4+
### Go ###
5+
# If you prefer the allow list template instead of the deny list, see community template:
6+
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
7+
#
8+
# Binaries for programs and plugins
9+
*.exe
10+
*.exe~
11+
*.dll
12+
*.so
13+
*.dylib
14+
15+
# Test binary, built with `go test -c`
16+
*.test
17+
18+
# Output of the go coverage tool, specifically when used with LiteIDE
19+
*.out
20+
21+
# Dependency directories (remove the comment below to include it)
22+
# vendor/
23+
24+
# Go workspace file
25+
go.work
26+
27+
### Linux ###
28+
*~
29+
30+
# temporary files which can be created if a process still has a handle open of a deleted file
31+
.fuse_hidden*
32+
33+
# KDE directory preferences
34+
.directory
35+
36+
# Linux trash folder which might appear on any partition or disk
37+
.Trash-*
38+
39+
# .nfs files are created when an open file is removed but is still being accessed
40+
.nfs*
41+
42+
### VisualStudioCode ###
43+
.vscode/*
44+
!.vscode/settings.json
45+
!.vscode/tasks.json
46+
!.vscode/launch.json
47+
!.vscode/extensions.json
48+
!.vscode/*.code-snippets
49+
50+
# Local History for Visual Studio Code
51+
.history/
52+
53+
# Built Visual Studio Code Extensions
54+
*.vsix
55+
56+
### VisualStudioCode Patch ###
57+
# Ignore all local history of files
58+
.history
59+
.ionide
60+
61+
### Windows ###
62+
# Windows thumbnail cache files
63+
Thumbs.db
64+
Thumbs.db:encryptable
65+
ehthumbs.db
66+
ehthumbs_vista.db
67+
68+
# Dump file
69+
*.stackdump
70+
71+
# Folder config file
72+
[Dd]esktop.ini
73+
74+
# Recycle Bin used on file shares
75+
$RECYCLE.BIN/
76+
77+
# Windows Installer files
78+
*.cab
79+
*.msi
80+
*.msix
81+
*.msm
82+
*.msp
83+
84+
# Windows shortcuts
85+
*.lnk
86+
87+
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,go,linux,windows
88+
89+
builds/

0 commit comments

Comments
 (0)