Skip to content

Commit d72efce

Browse files
committed
chore: add actions
1 parent 5a6c015 commit d72efce

2 files changed

Lines changed: 55 additions & 1 deletion

File tree

.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
root = true
22

33
[*]
4-
indent_style = space
4+
indent_style = tab
55
indent_size = 4
66
end_of_line = lf
77
charset = utf-8
88
trim_trailing_whitespace = false
99
insert_final_newline = true
1010

11+
[*.{yml,yaml}]
12+
indent_style = space
13+
indent_size = 2

.github/workflows/build.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: "Build"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
workflow_dispatch:
8+
9+
release:
10+
types: [published]
11+
12+
jobs:
13+
build:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
platform:
18+
- ubuntu-22.04
19+
- windows-latest
20+
- macos-latest
21+
22+
runs-on: ${{ matrix.platform }}
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- name: Cache Rust dependencies
27+
uses: actions/cache@v4
28+
with:
29+
path: |
30+
~/.cargo/registry
31+
~/.cargo/git
32+
target
33+
key: ${{ matrix.platform }}-cargo-${{ hashFiles('**/Cargo.lock') }}
34+
restore-keys: |
35+
${{ runner.os }}-cargo-
36+
37+
- name: Install Rust stable
38+
uses: dtolnay/rust-toolchain@stable
39+
with:
40+
targets: ${{ (matrix.platform == 'macos-latest') && 'aarch64-apple-darwin' || '' }}
41+
42+
- name: Setup Windows dependencies
43+
if: runner.os == 'Windows'
44+
run: choco install strawberryperl make --no-progress
45+
46+
- name: Setup MSVC environment
47+
if: runner.os == 'Windows'
48+
uses: ilammy/msvc-dev-cmd@v1
49+
50+
- name: Build
51+
run: cargo build --bin plumeimpactor --release

0 commit comments

Comments
 (0)