Skip to content

Avoid different function declarations #210

Avoid different function declarations

Avoid different function declarations #210

# Workflow's name
name: windows-vs2022
# Run this workflow every time a new commit pushed to your repository
on: [push, pull_request]
jobs:
windows-vs2022:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Setup premake
uses: abel0b/setup-premake@v2.2
with:
version: "5.0.0-beta1"
- name: setup msbuild
uses: microsoft/setup-msbuild@v1.1
- name: Build
run: |
msbuild /m Server.sln /p:configuration="release"
- name: Test
run: .\moon.exe test/main_test.lua
- name: Publish
shell: bash
run: |
mkdir publish
cp -r lualib publish/
cp -r service publish/
cp -r example publish/
cp -r test publish/
cp moon.exe publish/
tar -zcvf windows-amd64.tar.gz -C publish .
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.3
with:
name: windows-amd64-${{ github.sha }}
path: publish/
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: windows-amd64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}