krzys-h
f5519f8936
Send comment when pull request targets the wrong branch
2021-02-22 12:57:04 +01:00
krzys-h
9f2f7780a4
Safely upload linter results from forks to GitHub
...
This makes lint results from pull requests appear as GitHub checks
similarly to how pull requests from branches are able to work
Based on https://securitylab.github.com/research/github-actions-preventing-pwn-requests
2021-02-22 12:57:03 +01:00
krzys-h
9c91fd1e52
Replace custom download script with dawidd6/action-download-artifact
2021-02-22 10:44:45 +01:00
krzys-h
b47ee4dd1e
Don't try to upload annotations for pull requests from forks
...
The GITHUB_TOKEN is readonly when running from a fork... and I've found exactly 0 workarounds for this issue
I wanted to check permissions on the actual token rather than if we are running inside a fork, but the header that is supposed to specify the permissions doesn't exist under GH Actions (╯°□°)╯︵ ┻━┻
2020-07-20 21:06:13 +02:00
krzys_h
dc6cfbb691
Use colobot-lint from GitHub Actions rather than Jenkins
2020-07-20 19:51:50 +02:00
MrSimbax
2fa706a123
Add x86 MSVC build to GH Actions
2020-07-14 21:43:34 +02:00
MrSimbax
73429315a7
Add USE_STATIC_RUNTIME option
...
Mainly useful for MSVC.
2020-07-14 20:43:42 +02:00
MrSimbax
3ec39047e1
Fix MXE build
2020-07-13 22:46:32 +02:00
MrSimbax
fde66a9422
Make MSVC Windows build a separate job
...
Bring back the old file for Linux (with MXE).
Find number of logical processors on Windows by using PowerShell magic.
2020-07-13 21:19:03 +02:00
MrSimbax
17ece36b3e
Enable OpenAL in CI MSVC build
...
The issue with OpenAL not compiling with vcpkg was solved upstream.
2020-07-13 20:43:32 +02:00
MrSimbax
cc4cfd2122
Fix linter
2020-07-12 23:18:21 +02:00
MrSimbax
c4037a885f
Make CI Windows build with MSVC instead of MXE
2020-07-12 23:17:42 +02:00
MrSimbax
9e8ebe4595
Checkout Google Test in GH workflow
...
I hope this works.
2020-07-11 12:41:33 +02:00
MrSimbax
97b266182b
Fix MXE build
2020-07-09 19:55:11 +02:00
krzys-h
4eaa8588d7
Add missing apt-get update
2020-07-09 19:37:52 +02:00
krzys-h
76bb08779a
Switch to actions/checkout@v2
...
As per GitHub recommendations
2020-07-09 19:37:22 +02:00
krzys-h
03c60202b8
Clean up some of the old colobot-lint run scripts
2020-07-09 19:09:38 +02:00
krzys-h
dcd84523ab
Send colobot-lint results to GitHub using annotations
...
This makes the results visible directly in the pull request UI changes
view
2020-07-09 19:09:38 +02:00
krzys-h
a6a7b0c96c
Display correct PR target branch as success rather than skipped
2020-07-07 18:37:21 +02:00
krzys-h
0ef21bfdbb
Test builds on Ubuntu 16.04, 18.04 and 20.04
...
It's free, so why not?
This also partially deprecates the Docker container used for building -
now it's used only for MXE builds (because building MXE takes way too
long to do it inside the action)
2020-07-07 18:17:24 +02:00
krzys-h
6d7aadf987
Migrate to GitHub Actions
...
This is pretty much a straight port of our Jenkinsfile to GitHub
Actions. It could use some modernization in a few places, but it should
work for now.
Note that I left the Jenkinsfile for now - we'll be using them both
until we are sure that the GitHub Actions version is stable.
2020-07-07 18:09:12 +02:00