-
Notifications
You must be signed in to change notification settings - Fork 133
36 lines (36 loc) · 1.22 KB
/
native_libhfs_darwin.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
# this workflow builds native libhfscompressor for MacOSX
# once build it will create a branch and commit all changes to it
# it allow then to merge received artifacts to master
name: "Build libhfscompressor (MacOSX)"
on:
workflow_dispatch:
inputs:
scriptArgs:
description: 'Arguments to build.sh'
targetBranch:
description: 'Target branch to push artifacts'
required: true
commitMessage:
description: 'Commit message'
jobs:
printInputs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Install dependencies
run: |
brew install autoconf automake pkg-config libtool cmake
- name: Build libhfscompressor natives
run: |
cd compiler/libhfscompressor
./build.sh ${{ github.event.inputs.scriptArgs }}
- name: Push changes to the branch
run: |
git checkout -b "${{ github.event.inputs.targetBranch }}"
git add compiler/bin
git commit -m "${{ github.event.inputs.commitMessage }}"
git push --set-upstream origin "${{ github.event.inputs.targetBranch }}"