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
|
|
|
|
|
2023-01-23 01:20:30 +00:00
|
|
|
- name: Install dependencies
|
2022-06-30 19:23:00 +00:00
|
|
|
run: |
|
2023-01-23 01:20:30 +00:00
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y file unzip wget
|
2022-06-30 19:23:00 +00:00
|
|
|
|
|
|
|
- name: Build
|
2023-01-23 01:20:30 +00:00
|
|
|
env:
|
|
|
|
DOCKER_BUILDKIT: 1
|
|
|
|
run: docker build --target export --output build .
|
2022-06-30 19:23:00 +00:00
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
wget https://cdn.discordapp.com/attachments/727918646525165659/917185027656286218/GC_WII_COMPILERS.zip
|
|
|
|
unzip GC_WII_COMPILERS.zip
|
2022-09-24 14:59:30 +00:00
|
|
|
MWCIncludes=. build/wibo GC/2.7/mwcceppc.exe -c test/test.c -Itest
|
2022-06-30 19:23:00 +00:00
|
|
|
file test.o
|
2022-07-01 17:18:03 +00:00
|
|
|
|
|
|
|
- name: Upload build
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: wibo
|
2022-07-06 11:03:19 +00:00
|
|
|
path: build/wibo
|
2022-07-01 17:18:03 +00:00
|
|
|
|
2022-07-03 14:15:45 +00:00
|
|
|
- name: Publish release
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
2022-07-01 17:18:03 +00:00
|
|
|
with:
|
2022-07-06 11:03:19 +00:00
|
|
|
files: build/wibo
|