Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: CI-compile

on:
push:
pull_request:

jobs:
build-windows:
name: Windows compilation
runs-on: windows-2019

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup msbuild
uses: microsoft/[email protected]
# with:
# vs-version: "[15.0,16.0)"
# msbuild-architecture: x64

- name: Build
run: msbuild.exe cli\\maxcso.sln -m -p:Configuration=Release -p:PlatformToolset=v141_xp -p:Platform=x64 -p:TrackFileAccess=false
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, did it fail without specifying PlatformToolset? I'm gonna try without that, because I'd prefer to be able to merge #34 without changing this file. On PPSSPP, I don't remember needing it...

-[Unknown]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it will fail, your project specs are too outdated, Travis was using msvc2017, but visual studio 2019 needs to include this flag. Or you can update your project specs by opening it in the modern visual studio. I didnt do tht cause it will raise many warning, some of them can be treated as errors, so I just provide compilable solution.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It did build okay without it:
d30c968#diff-f9d9a4b23f1d680a037541fcd155069b6c4ca2db38a49414383ab735de964688L23

I probably will drop XP support in not that long, but there hasn't really been a reason to do it other than newer Visual Studio versions dropping support. I prefer to drop support for things in response to real limitations, not just because I think I know better than users still using XP.

-[Unknown]


- uses: actions/upload-artifact@v2
with:
name: maxcso-windows-${{ matrix.platform }}
path: maxcso.exe

build-macos:
name: MacOS compilation
runs-on: macos-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- run: brew install lz4 libuv libdeflate

- name: Build
run: |
make
tar -zcvf kelftool-macos.tar.gz maxcso

- uses: actions/upload-artifact@v2
with:
name: kelftool-macos
path: kelftool-macos.tar.gz
Comment on lines +47 to +48
Copy link
Owner

@unknownbrackets unknownbrackets May 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, typo (or unchanged from the reference file, I'd guess.) I'll just push a fix, gonna tweak the paths-ignore as well for the conditions.

-[Unknown]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doh, my bad :(


build-ubuntu:
name: Ubuntu compilation
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- run: sudo apt-get install libuv1-dev liblz4-dev

- name: Build
run: |
make
tar -zcvf maxcso-linux.tar.gz maxcso

- uses: actions/upload-artifact@v2
with:
name: maxcso-linux
path: maxcso-linux.tar.gz