Skip to content

Commit 55ca168

Browse files
committedMar 13, 2024
Add workflow that build on PR submit
1 parent 8e88f03 commit 55ca168

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
 

‎.github/workflows/PROpened.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: PROpened
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
show-progress: false
15+
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: 3.x
19+
cache: 'pip'
20+
- run: pip install -r requirements.txt
21+
22+
- name: Build
23+
env:
24+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
run: |
26+
cat >Makefile.inc <<EOF
27+
${{vars.MAKEFILE_INC}}
28+
EOF
29+
make
30+
31+
- name: Save Output
32+
id: save-output
33+
if: ${{ always() }}
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: output-pr-${{github.event.number}}
37+
path: |
38+
temp
39+
40+

0 commit comments

Comments
 (0)