1010 branches : [ "main" ]
1111
1212jobs :
13- check :
14- runs-on : ubuntu-latest
15- steps :
16- - uses : actions/checkout@v4
17-
18- - name : Set up Node.js
19- uses : actions/setup-node@v4
20- with :
21- node-version : ' 20'
22-
23- - name : Install embedme
24- run : npm install -g embedme
25-
26- - name : Verify README.md embedded code
27- run : npx embedme --verify README.md
28-
29- - name : Set up Go
30- uses : actions/setup-go@v4
31- with :
32- go-version : ' 1.23'
33-
34- - name : Check formatting
35- run : |
36- if [ -n "$(go fmt ./...)" ]; then
37- echo "Some files are not properly formatted. Please run 'go fmt ./...'"
38- exit 1
39- fi
40-
4113 build :
4214 continue-on-error : true
4315 strategy :
4416 fail-fast : false
4517 matrix :
46- sys :
47- - {os: macos-latest, shell: bash}
48- - {os: ubuntu-24.04, shell: bash}
49- - {os: windows-latest, shell: bash}
18+ os :
19+ - macos-latest
20+ - ubuntu-24.04
21+ - windows-latest
5022 defaults :
5123 run :
52- shell : ${{ matrix.sys.shell }}
53- runs-on : ${{matrix.sys. os}}
24+ shell : bash
25+ runs-on : ${{matrix.os}}
5426 steps :
55- # - uses: msys2/setup-msys2@v2
56- # if: matrix.sys.os == 'windows-latest'
57- # with:
58- # update: true
59- # install: >-
60- # curl
61- # git
62- # pkg-config
63-
6427 - uses : actions/checkout@v4
6528
6629 - name : Set up Go
@@ -72,15 +35,15 @@ jobs:
7235 with :
7336 python-version : ' 3.13'
7437 update-environment : true
75-
38+
7639 - name : Generate Python pkg-config for windows (patch)
77- if : matrix.sys. os == 'windows-latest'
40+ if : matrix.os == 'windows-latest'
7841 run : |
7942 mkdir -p $PKG_CONFIG_PATH
8043 cp .github/assets/python3-embed.pc $PKG_CONFIG_PATH/
81-
44+
8245 - name : Install tiny-pkg-config for windows (patch)
83- if : matrix.sys. os == 'windows-latest'
46+ if : matrix.os == 'windows-latest'
8447 run : |
8548 set -x
8649 curl -L https://github.com/cpunion/tiny-pkg-config/releases/download/v0.2.0/tiny-pkg-config_Windows_x86_64.zip -o /tmp/tiny-pkg-config.zip
9659
9760 - name : Test with coverage
9861 run : go test -coverprofile=coverage.txt -covermode=atomic ./...
99-
100- - name : Test gopy
101- run : |
102- set -x
103- gopy init $HOME/foo
104- cd $HOME/foo
105- gopy build -v .
106- export GP_INJECT_DEBUG=1
107- gopy run -v .
108- gopy install -v .
10962
11063 - name : Upload coverage to Codecov
11164 uses : codecov/codecov-action@v4
0 commit comments