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:
|
jobs:
|
||||||
|
|
||||||
build:
|
unix:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -24,3 +24,35 @@ jobs:
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -v ./...
|
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) {
|
func findClass(pattern string) (start, end int) {
|
||||||
start = -1
|
start = -1
|
||||||
escape := false
|
escape := false
|
||||||
|
|
|
@ -40,9 +40,9 @@ app.activate()
|
||||||
ObjC.import('Cocoa')
|
ObjC.import('Cocoa')
|
||||||
ObjC.import('stdio')
|
ObjC.import('stdio')
|
||||||
ObjC.import('stdlib')
|
ObjC.import('stdlib')
|
||||||
{{template "common" .}}
|
|
||||||
var nsapp=$.NSApplication.sharedApplication
|
var nsapp=$.NSApplication.sharedApplication
|
||||||
nsapp.setActivationPolicy($.NSApplicationActivationPolicyAccessory)
|
nsapp.setActivationPolicy($.NSApplicationActivationPolicyAccessory)
|
||||||
|
{{template "common" .}}
|
||||||
var date=$.NSDatePicker.alloc.init
|
var date=$.NSDatePicker.alloc.init
|
||||||
date.setDatePickerStyle($.NSDatePickerStyleClockAndCalendar)
|
date.setDatePickerStyle($.NSDatePickerStyleClockAndCalendar)
|
||||||
date.setDatePickerElements($.NSDatePickerElementFlagYearMonthDay)
|
date.setDatePickerElements($.NSDatePickerElementFlagYearMonthDay)
|
||||||
|
|
Loading…
Reference in a new issue