-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (30 loc) · 842 Bytes
/
linux.yml
File metadata and controls
34 lines (30 loc) · 842 Bytes
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
# Build and push artifacts
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install protobuf
run: sudo apt-get install -y protobuf-compiler
- name: CMake generate
env:
ARTIFACT_NAME: ppc2cpp-${{ runner.os }}
run: |
cmake -B build \
-DCMAKE_INSTALL_PREFIX=$ARTIFACT_NAME \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
shell: bash
- name: Build
run: cmake --build build --target install -j
- uses: actions/upload-artifact@v3
if: github.ref == 'refs/heads/main' && github.repository == 'em-eight/ppc2cpp'
with:
name: ppc2cpp-${{ runner.os }}
path: ppc2cpp-${{ runner.os }}