Skip to content

Commit

Permalink
Merge pull request zorchenhimer#183 from zorchenhimer/embed
Browse files Browse the repository at this point in the history
Embed
  • Loading branch information
joeyak authored Oct 20, 2022
2 parents 8e6916f + bb37dd2 commit fe7af8f
Show file tree
Hide file tree
Showing 23 changed files with 655 additions and 802 deletions.
63 changes: 4 additions & 59 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:

strategy:
matrix:
target: [linux, windows, darwin]
os: [linux, windows, darwin, netbsd, freebsd, openbsd]
arch: [amd64, arm64]

env:
GOOS: ${{ matrix.target }}
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}

steps:
Expand All @@ -49,63 +49,8 @@ jobs:
- name: build
run: go build

- name: create artifacts dir
run: mkdir artifacts

- name: copy settings
run: cp settings_example.json artifacts/settings.json

- name: copy static
run: cp -r static artifacts/

- name: copy MovieNight
run: cp MovieNight* artifacts/

- uses: actions/upload-artifact@v3
with:
name: MovieNight-${{ matrix.target }}-${{ matrix.arch }}
name: MovieNight-${{ matrix.os }}-${{ matrix.arch }}
if-no-files-found: error
path: artifacts/*

test-ui-unix:
runs-on: ${{ matrix.os }}

needs: build

strategy:
matrix:
include:
- os: ubuntu-latest
artifact: MovieNight-linux-amd64
- os: macos-latest
artifact: MovieNight-darwin-amd64

steps:
- uses: actions/checkout@v2

- uses: actions/download-artifact@v3
with:
name: ${{ matrix.artifact }}

- name: test
run: |
chmod +x ./MovieNight
./MovieNight & cd _uitests && go test
test-ui-windows:
runs-on: windows-latest

needs: build

steps:
- uses: actions/checkout@v2

- uses: actions/download-artifact@v3
with:
name: MovieNight-windows-amd64

- name: test
run: |
Start-Job { ./MovieNight.exe }
cd _uitests
go test
path: MovieNight*
28 changes: 13 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,29 @@
*.dll
*.so
*.dylib
*.aseprite

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work

## Custom

# Log files
*.log

# GoCode debug file
debug

# Linux binary
MovieNight

# Windows binary
MovieNight.exe

# Darwin binary
MovieNightDarwin

# Go wasm script
static/js/wasm_exec.js
# MovieNight binary
MovieNight*

# Twitch channel info
static/subscriber.json
Expand All @@ -39,13 +37,13 @@ settings.json
# vscode
.vscode

# Autobuilt wasm files
static/main.wasm

# tags for vim
tags

# channel and emote list from twitch
subscribers.json
/.settings/
/.project

# Emotes dir
emotes
11 changes: 0 additions & 11 deletions _uitests/go.mod

This file was deleted.

20 changes: 0 additions & 20 deletions _uitests/go.sum

This file was deleted.

Loading

0 comments on commit fe7af8f

Please sign in to comment.