-
-
Notifications
You must be signed in to change notification settings - Fork 20
Create build workflow #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: C/C++ CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: ubuntu-latest | ||
runs-on: ubuntu-latest | ||
container: devkitpro/devkitppc:latest | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Build | ||
run: | | ||
make -j2 | ||
|
||
- name: Upload Build Artifacts | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. uploading artifacts from an examples repository just seems like a waste of resources to me. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not necessary your own storage that's getting used during the process, so it doesn't really seem like a big deal to me. And also, there are things in certain build environments that break, and I see useful to testing things in multiple build environments (including actions). For example: sometimes I'll update libogc on my Arch laptop and then everything breaks to the point of the exception handler not even working. (This type of result has never been solidly reproducible so don't ask me how to reproduce it). Besides that, I'll get to the rest of the file when I'm done the day. |
||
uses: actions/[email protected] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-j2 should be replaced with $(nproc) as I did here switchbrew/libnx@d6e38f2
Runners currently have up to 4 cores but I've still seen 2 core runners recently and of course they may up the cores in the future.