Just for fun, re-enable tests on github actions

This commit is contained in:
David Dworken 2022-11-05 23:44:01 -07:00
parent d4290daeb0
commit c87ae611fb
No known key found for this signature in database
2 changed files with 17 additions and 15 deletions

View File

@ -13,7 +13,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest] os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false fail-fast: false
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

@ -160,6 +160,7 @@ func checkError(err error) {
} }
func buildServer() { func buildServer() {
if runtime.GOOS != "windows" {
for { for {
wd, err := os.Getwd() wd, err := os.Getwd()
if err != nil { if err != nil {
@ -176,6 +177,7 @@ func buildServer() {
panic("failed to cd into hishtory dir!") panic("failed to cd into hishtory dir!")
} }
} }
}
version, err := os.ReadFile("VERSION") version, err := os.ReadFile("VERSION")
if err != nil { if err != nil {
panic(fmt.Sprintf("failed to read VERSION file: %v", err)) panic(fmt.Sprintf("failed to read VERSION file: %v", err))