v0.2.0-alpha b26478a

test.yml RawHistoryFolder

1name: Test
2
3on: [push, pull_request]
4
5jobs:
6  test:
7    strategy:
8      matrix:
9        os: [ubuntu-latest, macos-latest, windows-latest]
10        go: ['1.15.x', '1.16.x', '1.17.x', '1.18.x', '1.19.x']
11    name: Test with Go ${{ matrix.go }} on ${{ matrix.os }}
12    runs-on: ${{ matrix.os }}
13    defaults:
14      run:
15        shell: bash
16    steps:
17      - name: Git
18        run: |
19          # See actions/checkout#135
20          git config --global core.autocrlf false
21          git config --global core.eol lf
22
23      - name: Checkout
24        uses: actions/checkout@v2
25
26      - name: Setup Go
27        uses: actions/setup-go@v3
28        with:
29          go-version: ${{ matrix.go }}
30
31      - name: go vet
32        if: ${{ !startsWith(matrix.os, 'windows-') && !startsWith(matrix.os, 'macos-') }}
33        run: |
34          go vet -tags=example -v ./...
35
36      - name: go build
37        run: |
38          go build -v ./...
39          # Compile without optimization to check potential stack overflow.
40          # The option '-gcflags=all=-N -l' is often used at Visual Studio Code.
41          # See also https://go.googlesource.com/vscode-go/+/HEAD/docs/debugging.md#launch and the issue hajimehoshi/ebiten#2120.
42          go build "-gcflags=all=-N -l" -v ./...
43
44          # Check cross-compiling Windows binaries.
45          env GOOS=windows GOARCH=386 go build -v ./...
46          env GOOS=windows GOARCH=amd64 go build -v ./...
47          env GOOS=windows GOARCH=arm go build -v ./...
48
49          # Check cross-compiling macOS binaries.
50          env GOOS=darwin GOARCH=amd64 go build -v ./...
51
52      - name: go build (Windows, ARM64)
53        # Go 1.16 and older don't support the pair GOOS=windows and GOARCH=arm64.
54        if: ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') }}
55        run: |
56          # Check cross-compiling Windows binaries.
57          env GOOS=windows GOARCH=arm64 go build -v ./...
58
59      - name: go build (macOS, ARM64)
60        # Purego doesn't support the pair GOOS=darwin and GOARCH=arm64 with Go 1.15 so far (#37).
61        if: ${{ !startsWith(matrix.go, '1.15.') }}
62        run: |
63          # Check cross-compiling macOS binaries.
64          env GOOS=darwin GOARCH=arm64 go build -v ./...
65
66      - name: go mod vendor
67        if: ${{ !startsWith(matrix.os, 'ubuntu-') }}
68        run: |
69          mkdir /tmp/vendoring
70          cd /tmp/vendoring
71          go mod init foo
72          echo 'package main' > main.go
73          echo 'import (' >> main.go
74          echo '  _ "github.com/ebitengine/purego"' >> main.go
75          echo ')' >> main.go
76          echo 'func main() {}' >> main.go
77          go mod edit -replace github.com/ebitengine/purego=$GITHUB_WORKSPACE
78          go mod tidy
79          go mod vendor
80          go build -v .
81
82      - name: go test
83        run: |
84          go test ${{ !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') && '-shuffle=on' || '' }} -v -count=10 ./...

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 102

↑↓ moveenter openesc close