-
Notifications
You must be signed in to change notification settings - Fork 23
41 lines (33 loc) · 1.01 KB
/
Copy pathBuild.yml
File metadata and controls
41 lines (33 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
name: HP-ProBookEliteBook
on:
push:
pull_request:
workflow_dispatch:
jobs:
build-macos:
name: Build HP-ProBookEliteBook
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- name: Manage Version
run: |
git fetch --prune --unshallow --tags
echo "CUR_TAG=$(git tag -l | tail -1)" >> $GITHUB_ENV
echo "GIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Build HP-ProBookEliteBook
run: |
chmod +x ./makefile
- name: Prepare Release
run: |
make
(cd "build/" || exit 1)
releaseItems=(build/Release)
for releaseItem in "${releaseItems[@]}"; do cp -Rf "${releaseItem}" ./ || exit 1; done
- name: 'Tar files'
run: tar -cvf ./build/Release.tar ./build/Release
- name: Upload to Artifacts
uses: actions/upload-artifact@v6
with:
name: HP-ProBookEliteBook-${{ env.GIT_SHA }}
path: |
build/Release.tar