Skip to content

Commit fe4fe65

Browse files
committedMay 2, 2024·
Initial
0 parents  commit fe4fe65

File tree

684 files changed

+120605
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

684 files changed

+120605
-0
lines changed
 

‎.github/workflows/rust.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [opened, synchronize, reopened, ready_for_review]
9+
10+
jobs:
11+
build:
12+
runs-on: ${{ matrix.os }}
13+
if: github.event.pull_request.draft == false
14+
15+
strategy:
16+
matrix:
17+
os: [macos-latest, windows-latest, ubuntu-latest]
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Install Rust Unix
23+
if: runner.os != 'Windows'
24+
run: |
25+
if rustup --version >/dev/null 2>&1; then
26+
rustup update
27+
else
28+
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain stable
29+
echo ::add-path::$HOME/.cargo/bin
30+
fi
31+
- name: Install Rust Windows
32+
if: runner.os == 'Windows'
33+
run: |
34+
if (Get-Command "rustup" -ErrorAction SilentlyContinue) {
35+
rustup update
36+
} else {
37+
Invoke-WebRequest https://static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-init.exe -OutFile rustup-init.exe
38+
./rustup-init.exe -y --profile minimal --default-toolchain stable
39+
echo ::add-path::%USERPROFILE%\.cargo\bin
40+
}
41+
42+
- name: Rust version
43+
run: |
44+
cargo --version
45+
rustc --version
46+
47+
- name: Test
48+
run: cargo build

‎.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target
2+
**/*.rs.bk
3+
Cargo.lock

0 commit comments

Comments
 (0)
Please sign in to comment.