Skip to content
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

Setup GitHub Actions #5

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
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
67 changes: 67 additions & 0 deletions .github/workflows/build-and-upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Basic Checks
on:
pull_request:
branches: [main] # run automatically for pull requests to main branch
paths-ignore:
- '*.md'
- '*.yml'
- 'docs/**'
- '.clang-format'
- '.drone.star'
- '.gitattributes'
- '.gitignore'
- '.gdbinit'
- '.github/*_TEMPLATE/**'
- 'src/**/*_posix.*'
- 'src/**/*_linux.*'
- 'src/**/*_gnulinux.*'
- 'src/**/*_x11.*'
- 'src/**/*_gtk.*'
- 'src/**/*_android.*'
- 'src/**/*_mac.*'
- 'LICENSE'
push:
branches: [main] # run automatically for pushes to main branch
paths-ignore:
- '*.md'
- '*.yml'
- 'docs/**'
- '.clang-format'
- '.drone.star'
- '.gitattributes'
- '.gitignore'
- '.gdbinit'
- '.github/*_TEMPLATE/**'
- 'src/**/*_posix.*'
- 'src/**/*_linux.*'
- 'src/**/*_gnulinux.*'
- 'src/**/*_x11.*'
- 'src/**/*_gtk.*'
- 'src/**/*_android.*'
- 'src/**/*_mac.*'
- 'LICENSE'

jobs:
windows:
runs-on: windows-latest
steps:
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.6
architecture: x64
- name: Set up Visual Studio variables
uses: egor-tensin/vs-shell@v2
- name: Checkout
uses: actions/[email protected]
- name: xenia-build
run: |
./xb setup # setup the project
./xb build --config=Release --target=src\xenia-app # attempt to build the project
# ./xb format # make sure the formatting is correct
- name: Upload Binary
uses: actions/[email protected]
with:
name: windows
path: "build/bin/${{ runner.os }}/Release/*.exe"
if-no-files-found: error