mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 02:24:16 +01:00
Move from travis to github actions.
This commit is contained in:
parent
ac36f99f62
commit
0742efdf06
55
.github/workflows/ci.yml
vendored
Normal file
55
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
name: C/C++ CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: ${{ matrix.name }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
name: [
|
||||
ubuntu-18.04
|
||||
]
|
||||
include:
|
||||
- name: ubuntu-18.04
|
||||
os: ubuntu-18.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Install
|
||||
run: |
|
||||
wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb -O /tmp/devkitpro-pacman.deb
|
||||
sudo dpkg -i /tmp/devkitpro-pacman.deb
|
||||
yes | sudo dkp-pacman -Syu --needed devkitPPC wut-tools
|
||||
echo ::set-env name=DEVKITPRO::/opt/devkitpro
|
||||
echo ::set-env name=DEVKITPPC::/opt/devkitpro/devkitPPC
|
||||
echo ::set-env name=PATH::$DEVKITPRO/tools/bin:$DEVKITPPC/bin:$PATH
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
make -j2
|
||||
sudo -E make install
|
||||
|
||||
- name: Build Test
|
||||
run: |
|
||||
cd tests
|
||||
mkdir build && cd build
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE=$DEVKITPRO/wut/share/wut.toolchain.cmake ../
|
||||
make -j2
|
||||
|
||||
- name: Build Samples (Make)
|
||||
run: |
|
||||
cd samples/make
|
||||
make -j2
|
||||
|
||||
- name: Build Samples (CMake)
|
||||
run: |
|
||||
cd samples/cmake
|
||||
mkdir build && cd build
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE=$DEVKITPRO/wut/share/wut.toolchain.cmake ../
|
||||
make -j2
|
58
.travis.yml
58
.travis.yml
@ -1,58 +0,0 @@
|
||||
language: cpp
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- os: linux
|
||||
dist: xenial
|
||||
sudo: required
|
||||
env: DEPLOY_FILE=wut-*.tar.bz2
|
||||
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
- sourceline: 'ppa:cginternals/backports-ppa'
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- "$HOME/.local"
|
||||
- "/opt/devkitpro"
|
||||
|
||||
git:
|
||||
submodules: true
|
||||
|
||||
install:
|
||||
- wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb -O /tmp/devkitpro-pacman.deb
|
||||
- sudo dpkg -i /tmp/devkitpro-pacman.deb
|
||||
- yes | sudo dkp-pacman -Syu --needed devkitPPC wut-tools
|
||||
- export DEVKITPRO=/opt/devkitpro
|
||||
- export DEVKITPPC=/opt/devkitpro/devkitPPC
|
||||
- export PATH=$DEVKITPRO/tools/bin:$DEVKITPPC/bin:$PATH
|
||||
|
||||
script:
|
||||
- cd "$TRAVIS_BUILD_DIR"
|
||||
# Build wut
|
||||
- make -j4
|
||||
- sudo make install
|
||||
# Build tests
|
||||
- echo Tests disabled for now
|
||||
# - cd tests
|
||||
# - mkdir build && cd build
|
||||
# - cmake ../
|
||||
# - make -j4 VERBOSE=TRUE
|
||||
# - cd ../../
|
||||
# Build samples
|
||||
- cd samples/make
|
||||
- make -j4
|
||||
- cd ../../
|
||||
|
||||
deploy:
|
||||
provider: releases
|
||||
skip_cleanup: true
|
||||
api_key:
|
||||
secure: gH3xndfXg4xCXUaqYvGecr9mzLXMMPOZfpqhnwuTIVnlAcR3jKeJ/3jlLs2Rm+GL1Mhby6f1YmtlhRX+G+OzDnp67m3kZaPsdZxqdn7SnBrVFEAbyv92wVullZB5O4mi7hYz5kAqFl0nzzfv7x5O1UtAqM3btFQAM4hiLDo2yqxsGCZsAsOlGCrwt6602hz0qnJ7PeOFAsxygdhdCmF+oWSzXVt0CZ1QfCZQzflZNO0M/CbYRtEcRE3iiHSWo6GRvMkTPw5o5Xca4cyuf1E86Aaym/ccwjKbrEIj77tImiH5iGhF7urXnjk2AxmpXHcDHSdB1WFLHdkbE7tdyhc11ahBJeOcof/LN3t/+HVqwjpse17kBBemc0y4pHyxSRZFoERQaP2mEvUMS1dVQXVdHm0RT3IKk7QBlRw0WTJX7sE836dhRenO03WyFgDRxNC6AT7DZsyN2UDEbOPFosBboiU73I3r8gvQtOKpMuDji6RPqUTUgEsB5HHXK1HLyijTAVbZPErNX97ucl6LdQ/uxmd/xgbZFc0jBUKa50H1/UN9LDlbw4Lf51Frl4rxg6DdZtDVx+6FTNaALm1iwAnVa7lhCDoH5Z+KVKJjKY1xW8P+OtTVFs1ZR/hkwblgc72hDShRyWkycYQTYgHwnRHL3OOObXDT6hZzggE5NwZJ8wg=
|
||||
file_glob: true
|
||||
file: $WUT_ROOT/$DEPLOY_FILE
|
||||
on:
|
||||
repo: devkitPro/wut
|
||||
tags: true
|
@ -1,4 +1,4 @@
|
||||
[![Build Status](https://travis-ci.org/devkitPro/wut.svg)](https://travis-ci.org/devkitPro/wut)
|
||||
[![Build status](https://github.com/devkitPro/wut/workflows/C%2FC%2B%2B%20CI/badge.svg)](https://github.com/devkitPro/wut/actions?workflow=C%2FC%2B%2B+CI)
|
||||
|
||||
# wut
|
||||
Let's try make a Wii U Toolchain / SDK for creating rpx/rpl.
|
||||
|
Loading…
Reference in New Issue
Block a user