Skip to content

Commit

Permalink
Merge pull request #87 from JohanCDev/fix/86-add-caches-release-action
Browse files Browse the repository at this point in the history
Create releases
  • Loading branch information
JohanCDev authored Nov 8, 2022
2 parents f418c4d + 08a1adb commit eaede77
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,29 @@ jobs:
build-on-windows:
runs-on: windows-latest
steps:
- name: Cache Conan packages
id: cache_windows
uses: actions/cache@v3
with:
path: |
~/.conan
C:\.conan
key: ${{ runner.os }}-${{ hashfiles('**/conanfile.txt') }}

- name: Install conan
uses: turtlebrowser/get-conan@main

- name: Checkout repository
uses: actions/checkout@v1

- name: Build rtype binaries on Ubuntu (desktop)
- name: Build rtype binaries on Windows (desktop)
run: |
mkdir -p build
cd build/
conan install .. --build=missing -c tools.system.package_manager:mode=install -c tools.system.package_manager:sudo=True
cmake -DCMAKE_BUILD_TYPE=Release -D_WIN32_WINNT=0x0601 ..
cd ..
cmake --build build/
- name: Package
run: |
Expand All @@ -72,3 +83,27 @@ jobs:
name: Windows
path: |
${{ github.workspace }}/build/R-Type-*-win64.msi
create-release:
needs: [build-on-ubuntu, build-on-windows]
permissions:
contents: write
environment:
name: production
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v3

- name: Debug directory
run: ls -lRa

- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.inputs.version }}
body: ${{ github.event.inputs.body }}
token: ${{ secrets.GITHUB_TOKEN }}
files: |
${{ github.workspace }}/Linux/*.tar.gz
${{ github.workspace }}/Windows/*.msi

0 comments on commit eaede77

Please sign in to comment.