mirror of https://github.com/gogs/gogs.git
parent
a7afa11610
commit
90904b3f42
|
@ -0,0 +1,13 @@
|
||||||
|
name: Shell
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
pull_request:
|
||||||
|
jobs:
|
||||||
|
shellcheck:
|
||||||
|
name: Shellcheck
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Run ShellCheck
|
||||||
|
uses: ludeeus/action-shellcheck@master
|
|
@ -1,11 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
outPath=./output
|
outPath=./output
|
||||||
|
|
||||||
rm -rf $outPath
|
rm -rf $outPath
|
||||||
mkdir $outPath
|
mkdir $outPath
|
||||||
|
|
||||||
go build ../gogs.go
|
go build ../gogs.go
|
||||||
PLATFORM=`uname | cut -d _ -f 1`
|
PLATFORM=$(uname | cut -d _ -f 1)
|
||||||
if [ $PLATFORM = "MINGW32" ] || [ $PLATFORM = "MINGW64" ] || [ $PLATFORM = "CYGWIN" ]; then
|
if [ "$PLATFORM" = "MINGW32" ] || [ "$PLATFORM" = "MINGW64" ] || [ "$PLATFORM" = "CYGWIN" ]; then
|
||||||
GOGS_EXE=gogs.exe
|
GOGS_EXE=gogs.exe
|
||||||
else
|
else
|
||||||
GOGS_EXE=gogs
|
GOGS_EXE=gogs
|
||||||
|
|
Loading…
Reference in New Issue