Skip to content

Commit d798dc4

Browse files
committed
Replace build with just copying header file
1 parent 52b7486 commit d798dc4

File tree

1 file changed

+5
-47
lines changed

1 file changed

+5
-47
lines changed

.github/workflows/build-release.yml

Lines changed: 5 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -5,58 +5,16 @@ on:
55
types: [published]
66

77
jobs:
8+
# just upload the header file to the Github release object for the "build" job
89
build-release:
9-
runs-on: ${{ matrix.os }}
10-
env:
11-
BUILD_TYPE: Release
12-
strategy:
13-
fail-fast: false
14-
matrix:
15-
# specify a specific compiler to build with each OS separately
16-
include:
17-
- platform_name: linux
18-
os: ubuntu-20.04
19-
cxx: g++-10
20-
- platform_name: macos
21-
os: macos-10.15
22-
cxx: clang++
23-
# NOTE: CXX seems to be ignored on Windows, but specify it anyway for consistency
24-
- platform_name: windows
25-
os: windows-2019
26-
cxx: msvc
27-
10+
runs-on: ubuntu-20.04
2811
steps:
2912
- uses: actions/checkout@v2
30-
31-
- name: Configure CMake
32-
env:
33-
CXX: ${{ matrix.cxx }}
34-
# Use a bash shell so we can use the same syntax for environment variable
35-
# access regardless of the host operating system
36-
shell: bash
37-
working-directory: ${{github.workspace}}/build
38-
# Note the current convention is to use the -S and -B options here to specify source
39-
# and build directories, but this is only available with CMake 3.13 and higher.
40-
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
41-
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX:PATH=$GITHUB_WORKSPACE/artifacts
42-
43-
- name: Build
44-
working-directory: ${{github.workspace}}/build
45-
shell: bash
46-
# Execute the build. You can specify a specific target with "--target <NAME>"
47-
run: cmake --build . --config $BUILD_TYPE
48-
49-
- name: Install
50-
working-directory: ${{github.workspace}}/build
51-
shell: bash
52-
# Use CMake to "install" build artifacts (only interested in CMake registered targets) to our custom artifacts directory
53-
run: cmake --install . --config $BUILD_TYPE
54-
55-
- name: Upload
13+
- name: Upload Header file
5614
uses: actions/upload-artifact@v2
5715
with:
58-
name: unmoving_build_${{ github.run_number }}_${{ matrix.platform_name }}
59-
path: ${{github.workspace}}/artifacts
16+
name: PSXFixed.hpp
17+
path: ${{github.workspace}}/unmoving/include/PSXFixed.hpp
6018
build-docs:
6119
runs-on: ubuntu-20.04
6220
# don't deploy docs unless release build succeeds

0 commit comments

Comments
 (0)