Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

Commit 1df637c

Browse files
committed
Rewrite to Rust
1 parent f036acf commit 1df637c

24 files changed

+1275
-804
lines changed

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
matrix:
13+
include:
14+
- os: ubuntu-latest
15+
fileName: "sw_linux_x64"
16+
file: "sw"
17+
- os: windows-latest
18+
fileName: "sw_windows_x64.exe"
19+
file: "sw.exe"
20+
- os: macos-latest
21+
fileName: "sw_macos_arm64"
22+
file: "sw"
23+
- os: macos-13
24+
fileName: "sw_macos_x64"
25+
file: "sw"
26+
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
- name: install Rust stable
32+
uses: dtolnay/rust-toolchain@stable
33+
34+
- name: Rust cache
35+
uses: swatinem/rust-cache@v2
36+
37+
- name: Build
38+
run: |
39+
cargo build --release
40+
mv ./target/release/${{ matrix.file }} ./${{ matrix.fileName }}
41+
42+
- name: Create release
43+
uses: softprops/action-gh-release@v2
44+
with:
45+
draft: true
46+
files: ${{ matrix.fileName }}

.github/workflows/dart.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1 @@
1-
# https://dart.dev/guides/libraries/private-files
2-
# Created by `dart pub`
3-
.dart_tool/
4-
.packages
5-
build/
6-
7-
# App work files
8-
/sw_config.json
9-
/injector.jar
10-
/server.jar
1+
/target

CHANGELOG.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)