Skip to content

Commit

Permalink
test ci result fx
Browse files Browse the repository at this point in the history
  • Loading branch information
ii64 committed Dec 17, 2020
1 parent f68e8a5 commit 582d347
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: |
mkdir build/linux_amd64
cp -a "./cli/deps/lib" build/linux_amd64/lib
GOOS=linux GOARCH=amd64 go build -x -v -o build/linux_amd64/tanem $CLINAME
GOOS=linux GOARCH=amd64 go build -x -v -o build/linux_amd64/tanem cli/tanem.go
zip -r ./tanem-linux-amd64.zip --junk-paths build/linux_amd64/*
- name: Create Release
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
*.out

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

#
vfs/
1 change: 1 addition & 0 deletions cli/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae h1:/WDfKMnPU+m5M4xB+6x4kaepxRw6jWvR5iDRdvjHgy8=
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/tools v0.0.0-20190828213141-aed303cbaa74/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
Expand Down
1 change: 1 addition & 0 deletions cli/make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go build -i -v -x tanem.go
5 changes: 3 additions & 2 deletions cli/tanem.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package main

import (
"os"
"fmt"
//"fmt"
"github.com/ii64/tanem/cmd"
)

func main() {
if err := cmd.NewTanemCmd(os.Args); err != nil {
fmt.Printf("[ERR]: %s", err)
//fmt.Printf("[ERR]: %s", err)
panic(err)
}
}
9 changes: 6 additions & 3 deletions emulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type Options struct {
VfpInstSet bool
LogColor bool
LogAs int
Config *Config
}
func NewDefaultOptions() *Options {
return &Options{
Expand Down Expand Up @@ -90,9 +91,11 @@ func NewEmulator(opt *Options) (*Emulator, error) {
config: NewDefaultConfig(),
Mu: mu,
}
err = LoadOrCreateConfig(opt.ConfigPath, emu.config)
if err != nil {
return nil, err
if opt.Config != nil {
err = LoadOrCreateConfig(opt.ConfigPath, emu.config)
if err != nil {
return nil, err
}
}
emu.configPath = opt.ConfigPath
emu.vfsRoot = opt.VfsRoot
Expand Down

0 comments on commit 582d347

Please sign in to comment.