This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
forked from mineek/Kernel64Patcher
-
-
Notifications
You must be signed in to change notification settings - Fork 4
61 lines (50 loc) · 1.54 KB
/
build.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
60
61
name: Build Kernel64Patcher
on:
push:
pull_request:
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
make -j$(nproc)
echo -n "$(git rev-parse HEAD | tr -d '\n')" > latest_build_sha.txt
echo -n "$(git rev-list --count HEAD | tr -d '\n')" > latest_build_num.txt
- name: Upload versioning
uses: actions/upload-artifact@v2
with:
name: Versioning
path: |
${{ github.workspace }}/latest_build_sha.txt
${{ github.workspace }}/latest_build_num.txt
- name: Upload artifact
uses: actions/[email protected]
with:
name: Kernel64Patcher-Linux
path: Kernel64Patcher
build-macOS:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
make -j$(sysctl -n hw.ncpu)
echo -n "$(git rev-parse HEAD | tr -d '\n')" > latest_build_sha.txt
echo -n "$(git rev-list --count HEAD | tr -d '\n')" > latest_build_num.txt
- name: Upload versioning
uses: actions/upload-artifact@v2
with:
name: Versioning
path: |
${{ github.workspace }}/latest_build_sha.txt
${{ github.workspace }}/latest_build_num.txt
- name: Upload artifact
uses: actions/[email protected]
with:
name: Kernel64Patcher-Darwin
path: Kernel64Patcher