-
Notifications
You must be signed in to change notification settings - Fork 50
42 lines (39 loc) · 1.33 KB
/
build.yml
File metadata and controls
42 lines (39 loc) · 1.33 KB
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
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
jobs:
build-linux:
runs-on: ubuntu-latest
container: ubuntu:14.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:george-edison55/cmake-3.x
sudo apt-get update
sudo apt-get install -y cmake cmake-data git build-essential autoconf automake libtool texinfo bison flex pkg-config python
- name: Build CMake 3.4.1
run: |
sudo apt-get install -y wget libcurl4-openssl-dev
wget http://www.cmake.org/files/v3.4/cmake-3.4.1.tar.gz && tar -xvzf cmake-3.4.1.tar.gz
cd cmake-3.4.1/ && ./configure --system-curl --parallel=$(nproc) && make -j$(nproc) && sudo make install
update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force
- name: Build
run: |
git config --global user.email "builds@travis-ci.com"
git config --global user.name "Travis CI"
mkdir build
cd build
cmake ..
make -j$(nproc) tarball
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v3
with:
name: vitasdk-linux
path: build/*.tar.bz2