Skip to content

Commit dfd3cf5

Browse files
committed
Fix build scripts
1 parent 732a33d commit dfd3cf5

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ tab_width = 4
1111

1212
[*.yaml]
1313
indent_size = 2
14+
tab_width = 2
15+
16+
[*.yml]
17+
indent_size = 2
1418
tab_width = 2

.github/actions/build/action.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ name: build
22
description: Build artifacts
33
inputs:
44
os:
5-
description: 'linux, windows or mac'
5+
description: "linux, windows or mac"
66
required: true
77
arch:
8-
description: 'x64, aarch64'
8+
description: "x64, aarch64"
99
required: true
1010
runs:
11-
using: composite
11+
using: "composite"
1212
steps:
1313
- name: Cache
1414
uses: actions/cache@v4
@@ -18,16 +18,13 @@ runs:
1818
~/.cargo/git
1919
target
2020
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
21-
- name: Checkout
22-
uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 0
2521
- name: Build
22+
shell: bash
2623
run: cargo build --release
2724
- name: Upload artifact
2825
uses: actions/upload-artifact@v4
2926
with:
3027
name: huly-coder-${{inputs.os}}
31-
path: /
28+
path: |
3229
target/release/huly-coder
33-
huly-coder.yaml
30+
huly-coder.yaml

.github/workflows/build.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
name: Build on Linux
1515
runs-on: ubuntu-latest
1616
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
1721
- uses: ./.github/actions/build
1822
with:
1923
os: linux
@@ -22,6 +26,10 @@ jobs:
2226
name: Build on MacOS
2327
runs-on: macos-latest
2428
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
with:
32+
fetch-depth: 0
2533
- uses: ./.github/actions/build
2634
with:
2735
os: macos
@@ -30,6 +38,10 @@ jobs:
3038
name: Build on Windows
3139
runs-on: windows-latest
3240
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v4
43+
with:
44+
fetch-depth: 0
3345
- uses: ./.github/actions/build
3446
with:
3547
os: windows

0 commit comments

Comments
 (0)