Skip to content

Realse

Realse #37

Workflow file for this run

name: Realse
on:
push:
tags:
- 'v*'
env:
SOLUTION_FILE_PATH: metamod/asexthook
BUILD_CONFIGURATION: Release
permissions:
contents: write
jobs:
build-win32:
runs-on: windows-latest
steps:
- name: Git Clone Metamod
uses: sudosubin/[email protected]
with:
repository: DrAbcOfficial/metamod-fallguys
path: metamod
- name: Git Clone This
uses: sudosubin/[email protected]
with:
repository: DrAbcOfficial/asexthook
path: metamod/asexthook
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
- name: Zipping All
uses: vimtor/action-zip@v1
with:
files: metamod/build/addons/metamod/dlls/asexthook.dll
dest: asexthook-windows-x86.zip
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: asexthook-${{ github.ref }}
files: |
asexthook-windows-x86.zip
build-linux:
runs-on: ubuntu-latest
steps:
- name: Setup Build Enviroment
uses: ConorMacBride/install-package@v1
with:
apt: make build-essential gcc gcc-multilib g++-multilib
- name: Git Clone Metamod
uses: sudosubin/[email protected]
with:
repository: DrAbcOfficial/metamod-fallguys
path: metamod
- name: Git Clone This
uses: sudosubin/[email protected]
with:
repository: DrAbcOfficial/asexthook
path: metamod/asexthook
- name: Build
working-directory: ${{env.SOLUTION_FILE_PATH}}
run: mkdir build && cd build && cmake .. && make && mv ../Release/libasexthook.so ../Release/asexthook.so
- name: Zipping All
uses: vimtor/action-zip@v1
with:
files: ${{env.SOLUTION_FILE_PATH}}/Release/asexthook.so
dest: asexthook-ubuntu-i386.zip
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: asexthook-${{ github.ref }}
files: |
asexthook-ubuntu-i386.zip