Skip to content

fix exit code

fix exit code #397

Workflow file for this run

# Workflow's name
name: linux-gcc
# Run this workflow every time a new commit pushed to your repository
on:
push:
paths:
- '.h'
- '.hpp'
- '**.c'
- '**.cc'
- '**.cpp'
pull_request:
paths:
- '.h'
- '.hpp'
- '**.c'
- '**.cc'
- '**.cpp'
jobs:
linux-gcc:
runs-on: ubuntu-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: Build
run: |
chmod +x build.sh
./build.sh
- name: Test
run: chmod +x moon && ./moon test/main_test.lua
- name: Publish
run: |
mkdir publish
cp -r lualib publish/
cp -r service publish/
cp -r example publish/
cp moon publish/
cd publish
tar -zcvf linux-amd64.tar.gz ./*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: publish/linux-amd64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}