Skip to content

Commit eedc8c0

Browse files
committed
initial
0 parents  commit eedc8c0

10 files changed

Lines changed: 1190 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
permissions:
9+
contents: write
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
14+
jobs:
15+
build-release:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
target:
20+
- x86_64-unknown-linux-gnu
21+
- x86_64-pc-windows-gnu
22+
include:
23+
- target: x86_64-pc-windows-gnu
24+
ext: .exe
25+
- target: x86_64-unknown-linux-gnu
26+
ext: ""
27+
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: dtolnay/rust-toolchain@stable
31+
- run: rustup target add ${{ matrix.target }}
32+
33+
- name: Install Windows toolchain
34+
if: matrix.target == 'x86_64-pc-windows-gnu'
35+
run: sudo apt-get update && sudo apt-get install -y gcc-mingw-w64
36+
37+
- name: Install libxdo
38+
run: sudo apt-get update && sudo apt-get install -y libxdo-dev
39+
40+
- name: Build binary
41+
run: cargo build --release --target ${{ matrix.target }}
42+
43+
- name: Package
44+
run: |
45+
mkdir -p dist
46+
BIN_NAME=lazycloud${{ matrix.ext }}
47+
cp target/${{ matrix.target }}/release/$BIN_NAME dist/lazycloud-${{ matrix.target }}${{ matrix.ext }}
48+
cd dist && zip lazycloud-${{ matrix.target }}.zip lazycloud-${{ matrix.target }}${{ matrix.ext }}
49+
50+
- name: Upload release asset
51+
uses: softprops/action-gh-release@v1
52+
with:
53+
files: dist/*.zip
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/rust.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: lazycloud
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
latest_deps:
14+
name: Test on Latest Dependencies
15+
runs-on: ubuntu-latest
16+
continue-on-error: true
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Rust
21+
uses: actions-rs/toolchain@v1
22+
with:
23+
toolchain: stable
24+
override: true
25+
26+
- name: Install libxdo
27+
run: sudo apt-get update && sudo apt-get install -y libxdo-dev
28+
29+
- name: Update Dependencies
30+
run: cargo update --verbose
31+
32+
- name: Build
33+
run: cargo build --verbose
34+
35+
- name: Test
36+
run: cargo test --verbose

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

0 commit comments

Comments
 (0)