Skip to content

Commit 0a74a1c

Browse files
authored
Build on Pull Requests
1 parent 659bd65 commit 0a74a1c

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
repository_dispatch:
6+
types: [run_build]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
container: ubuntu:14.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Install dependencies
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y software-properties-common
18+
sudo add-apt-repository ppa:george-edison55/cmake-3.x
19+
sudo apt-get update
20+
sudo apt-get install -y cmake cmake-data git build-essential autoconf texinfo bison flex pkg-config
21+
- name: Build
22+
run: |
23+
git config --global user.email "builds@travis-ci.com"
24+
git config --global user.name "Travis CI"
25+
mkdir build
26+
cd build
27+
cmake ..
28+
make -j$(nproc) tarball
29+
- name: Upload artifacts
30+
if: ${{ success() }}
31+
uses: actions/upload-artifact@v2
32+
with:
33+
name: vitasdk.tar.bz2
34+
path: build/*.tar.bz2

0 commit comments

Comments
 (0)