Workflows.

This commit is contained in:
Nuno Cruces 2022-12-07 12:49:03 +00:00
parent 2e206fd065
commit f4431eebaf
3 changed files with 35 additions and 2 deletions

View File

@ -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 ./...

View File

@ -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

View File

@ -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)