-
-
Notifications
You must be signed in to change notification settings - Fork 50
47 lines (40 loc) · 1.03 KB
/
Copy pathcomponent-linux.yml
File metadata and controls
47 lines (40 loc) · 1.03 KB
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
name: CI - Component x64 (Linux)
on:
push:
branches:
- main
- release/1.*
paths:
- .github/workflows/component-linux.yml
- src/sampsharp-component/**
- external/**
- build.sh
pull_request:
branches:
- main
- release/1.*
paths:
- .github/workflows/component-linux.yml
- src/sampsharp-component/**
- external/**
- build.sh
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y gcc g++ cmake
- name: Build component
run: ./build.sh component publish
- name: Upload artifacts
uses: actions/upload-artifact@v7
with:
name: sampsharp-component-linux
path: build/artifacts/sampsharp-component/
if-no-files-found: error
retention-days: ${{ github.event_name == 'pull_request' && 14 || 90 }}