Workflows.
This commit is contained in:
parent
2e206fd065
commit
f4431eebaf
3 changed files with 35 additions and 2 deletions
34
.github/workflows/go.yml
vendored
34
.github/workflows/go.yml
vendored
|
@ -9,7 +9,7 @@ on:
|
|||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
unix:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
@ -24,3 +24,35 @@ jobs:
|
|||
|
||||
- name: Test
|
||||
run: go test -v ./...
|
||||
|
||||
macos:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.18
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Test
|
||||
run: go test -v -short ./...
|
||||
|
||||
windows:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.18
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Test
|
||||
run: go test -v -short ./...
|
1
file.go
1
file.go
|
@ -226,6 +226,7 @@ func removeClasses(pattern string) string {
|
|||
}
|
||||
}
|
||||
|
||||
// Find a character class in the pattern.
|
||||
func findClass(pattern string) (start, end int) {
|
||||
start = -1
|
||||
escape := false
|
||||
|
|
|
@ -40,9 +40,9 @@ app.activate()
|
|||
ObjC.import('Cocoa')
|
||||
ObjC.import('stdio')
|
||||
ObjC.import('stdlib')
|
||||
{{template "common" .}}
|
||||
var nsapp=$.NSApplication.sharedApplication
|
||||
nsapp.setActivationPolicy($.NSApplicationActivationPolicyAccessory)
|
||||
{{template "common" .}}
|
||||
var date=$.NSDatePicker.alloc.init
|
||||
date.setDatePickerStyle($.NSDatePickerStyleClockAndCalendar)
|
||||
date.setDatePickerElements($.NSDatePickerElementFlagYearMonthDay)
|
||||
|
|
Loading…
Reference in a new issue