-
Notifications
You must be signed in to change notification settings - Fork 258
32 lines (29 loc) · 864 Bytes
/
linux-build.yml
File metadata and controls
32 lines (29 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: linux-build
on:
workflow_dispatch:
branches: [ "main" ]
workflow_call:
env:
CARGO_TERM_COLOR: always
jobs:
build-linux-x64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: Swatinem/rust-cache@v2
with:
shared-key: "persist-cross-job-linux-x64"
- name: Do the stuff on x64 ubuntu linux
shell: bash
run: |
mkdir -p artifacts-x64
cargo build --release
mv target/release/kanata artifacts-x64/kanata_linux_x64
cargo build --release --features cmd
mv target/release/kanata artifacts-x64/kanata_linux_cmd_allowed_x64
- uses: actions/upload-artifact@v7
with:
name: linux-binaries-x64
path: |
artifacts-x64/kanata_linux_x64
artifacts-x64/kanata_linux_cmd_allowed_x64