Skip to content

Commit

Permalink
Initial build-release test successful.
Browse files Browse the repository at this point in the history
Let's include the release's exact URL too
  • Loading branch information
saxbophone committed Sep 22, 2021
1 parent 3e89bac commit 18b655a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ jobs:
- name: Set Tag Name
# trim prefix from ref to get tag name
run: echo "TAG_NAME=${GITHUB_REF#'refs/tags/'}" >> $GITHUB_ENV
- name: Version-stamp Header file
run: |
echo "// Unmoving $TAG_NAME downloaded from Github at https://github.com/saxbophone/unmoving/releases" > header_stub.hpp
cat header_stub.hpp unmoving/include/unmoving/PSXFixed.hpp > PSXFixed.hpp
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Version-stamp Header file
env:
RELEASE_URL: ${{ steps.get_release.outputs.html_url }}
run: |
echo "// Unmoving $TAG_NAME downloaded from Github at $RELEASE_URL" > header_stub.hpp
cat header_stub.hpp unmoving/include/unmoving/PSXFixed.hpp > PSXFixed.hpp
- name: Upload Header file
uses: actions/[email protected]
env:
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ else()
set(UNMOVING_SUBPROJECT ON)
endif()

project(Unmoving VERSION 0.0.1 LANGUAGES CXX)
project(Unmoving VERSION 0.0.2 LANGUAGES CXX)

find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
Expand Down

0 comments on commit 18b655a

Please sign in to comment.