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

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) { func findClass(pattern string) (start, end int) {
start = -1 start = -1
escape := false escape := false

View file

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