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