-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (56 loc) · 1.74 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
52
53
54
55
56
57
58
59
name: Linux
on:
pull_request:
branches: [ "master" ]
workflow_dispatch:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout StdFuncs
uses: actions/checkout@v3
with:
repository: hitman-codehq/StdFuncs
path: StdFuncs
- name: Download Libraries
run: |
mv StdFuncs ..
gh run download --repo hitman-codehq/StdFuncs --name Linux-Libraries --dir ../StdFuncs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: |
make
- name: Build Debug
run: |
make DEBUG=1
- name: Archive Executables
uses: actions/upload-artifact@v3
with:
name: Linux-Executables
path: |
Debug/RADRunner
Release/RADRunner
- name: Prepare Release Files
run: |
echo -e "ref: $GITHUB_REF \ncommit: $GITHUB_SHA\nbuild: $(date +"%Y-%m-%dT%H:%M:%SZ")" > ReleaseInfo.txt
echo -e "platform:" $(uname -a) >> ReleaseInfo.txt
cp -a Debug/RADRunner ./RADRunner.debug
cp -a Release/RADRunner .
- name: Update Latest Build
uses: andelf/nightly-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: latest_linux
name: "Ubuntu Linux Latest Build $$"
prerelease: true
body: "This is a build of the latest code pushed to GitHub. It has received basic local testing but is
not an official release and is not guaranteed to function correctly"
files: |
RADRunner.debug
RADRunner
ReleaseInfo.txt