2022-06-30 19:23:00 +00:00
|
|
|
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
build_and_test:
|
|
|
|
name: Build and test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install GCC multilib
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y gcc-multilib g++-multilib
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: make -j
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
wget https://cdn.discordapp.com/attachments/727918646525165659/917185027656286218/GC_WII_COMPILERS.zip
|
|
|
|
unzip GC_WII_COMPILERS.zip
|
|
|
|
MWCIncludes=. ./wibo GC/2.7/mwcceppc.exe -c test/test.c
|
|
|
|
file test.o
|
2022-07-01 17:18:03 +00:00
|
|
|
|
|
|
|
- name: Upload build
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: wibo
|
|
|
|
path: wibo
|
|
|
|
|
|
|
|
- name: Update release
|
|
|
|
uses: johnwbyrd/update-release@v1.0.0
|
|
|
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
files: wibo
|