-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 971 Bytes
/
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
name: Build Binary
on: [push, pull_request, workflow_dispatch]
jobs:
build-plugin:
runs-on: ubuntu-latest
name: Build plugin
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: true
- name: Setup Docker
run: docker build --tag plugin-image .
- name: Build
uses: addnab/docker-run-action@v3
with:
image: plugin-image
options: --name plugin-container
run: |
./bootstrap
./configure --host=powerpc-eabi CXXFLAGS="-Os -ffunction-sections -fipa-pta"
make
- name: Copy from container to host
uses: tj-actions/docker-cp@v2
with:
container: plugin-container
source: /project/src/papaya-hud.wps
destination: papaya-hud.wps
- name: Upload
uses: actions/upload-artifact@v4
with:
name: papaya-hud.wps
path: "*.wps"
if-no-files-found: error