Update c-cpp.yml #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Makefile CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: devkitpro/devkita64:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: dependencies | |
run: | | |
apt update | |
apt install gcc -y | |
export CC=gcc | |
dkp-pacman -S switch-dev --noconfirm | |
git config --global --add safe.directory /__w/nxmp/nxmp | |
git submodule update --init --recursive | |
git clone --recursive https://github.com/sahlberg/libnfs.git libs/libnfs | |
(cd libs/libnfs/ && cmake . && make && make install) | |
- name: make clean | |
run: | | |
make clean | |
- name: final | |
run: | | |
make | |
- uses: actions/upload-artifact@master | |
with: | |
name: nxmp | |
path: build |