-
Notifications
You must be signed in to change notification settings - Fork 25
51 lines (40 loc) · 1.17 KB
/
linux.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Linux
on:
push:
branches:
- version_0_2_0
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: martypc
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: >-
sudo apt update && sudo apt install
libasound2-dev
libudev-dev
- name: Cargo build
run: cargo build -r --features ega
- name: Copy files into install dir
run: cp README.md target/release/martypc install
- name: Rename install directory
run: mv install martypc
- name: Create artifact directory
run: mkdir artifacts
# GitHub zips all artifacts, losing file permissions.
# We'll need to tar the directory in order to
# preserve the file permissions
- name: Create artifact from install directory
run: tar cvf artifacts/martypc.tar martypc
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: 'martypc-linux-gha${{ github.run_number }}'
path: artifacts/martypc.tar