Skip to content

Commit

Permalink
Partially sync actions with boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak authored Jan 28, 2023
1 parent 9e62da3 commit e2d2c7e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ name: Build

on:
push:
branches:
- '**' # only run on branches
pull_request:
release:
types: [created]
types: [published]

env:
BUILD_TYPE: Release
Expand Down Expand Up @@ -43,7 +45,7 @@ jobs:
- os: windows-latest
name: Visual Studio
release-suffix: WIN64
cmake-args: -D32BLIT_DIR=$GITHUB_WORKSPACE/32blit-sdk -DSDL2_DIR=$GITHUB_WORKSPACE/32blit-sdk/vs/sdl
cmake-args: -D32BLIT_DIR=$GITHUB_WORKSPACE/32blit-sdk

runs-on: ${{matrix.os}}

Expand All @@ -53,13 +55,13 @@ jobs:
steps:
# Check out the main repo
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: main

# Check out the 32Blit API we build against
- name: Checkout 32Blit API
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: 32blit/32blit-sdk
path: 32blit-sdk
Expand Down Expand Up @@ -93,7 +95,7 @@ jobs:
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/main/build
run: cmake $GITHUB_WORKSPACE/main -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCPACK_PACKAGE_FILE_NAME=${{env.RELEASE_FILE}} ${{matrix.cmake-args}}
run: ${{matrix.cmake-prefix}} cmake $GITHUB_WORKSPACE/main -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCPACK_PACKAGE_FILE_NAME=${{env.RELEASE_FILE}} ${{matrix.cmake-args}}

# And then run the build itself
- name: Build
Expand All @@ -110,13 +112,13 @@ jobs:
cmake --build . --config $BUILD_TYPE --target package
- name: Tar artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{env.RELEASE_FILE}}.tar.gz
path: ${{runner.workspace}}/main/build/${{env.RELEASE_FILE}}.tar.gz

- name: Zip artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: ${{runner.workspace}}/main/build/${{env.RELEASE_FILE}}.zip
name: ${{env.RELEASE_FILE}}.zip
Expand Down

0 comments on commit e2d2c7e

Please sign in to comment.