@@ -14,12 +14,12 @@ jobs:
1414 name : ${{ matrix.os }} ruby-${{ matrix.ruby }}
1515 strategy :
1616 matrix :
17- os : [ ubuntu-20 .04, macos-11 ]
18- ruby : [ 2.5, 2.6, 2.7 , 3.0 , 3.1 , 3.2 ]
17+ os : [ ubuntu-22 .04, macos-15 ]
18+ ruby : [ 2.7, 3.0, 3.1 , 3.2 , 3.3 , 3.4, 4.0 ]
1919 fail-fast : false
2020
2121 steps :
22- - uses : actions/checkout@v2
22+ - uses : actions/checkout@v4
2323
2424 - name : Setup Ruby
2525 uses : ruby/setup-ruby@v1
@@ -29,29 +29,25 @@ jobs:
2929 bundler-cache : true
3030
3131 - name : Setup Go
32- uses : actions/setup-go@v2
32+ uses : actions/setup-go@v6.3.0
3333 with :
34- go-version : ' 1.20.5 '
34+ go-version : ' 1.24 '
3535
3636 - name : Build Linux
37- if : matrix.os == 'ubuntu-20 .04'
37+ if : matrix.os == 'ubuntu-22 .04'
3838 shell : bash
3939 run : |
40- BUILD_DIR="tmp"
41- mkdir $BUILD_DIR
42- cp -R spec/support/libcobhandemo/* $BUILD_DIR
43- cd tmp
44- GOOS=linux GOARCH=amd64 go build -buildmode=c-shared -ldflags='-s -w' -o libcobhandemo-x64.so libcobhandemo.go
40+ mkdir -p tmp
41+ cd spec/support/libcobhandemo
42+ CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -buildmode=c-shared -ldflags='-s -w' -o ../../../tmp/libcobhandemo-x64.so .
4543
4644 - name : Build Darwin
47- if : matrix.os == 'macos-11 '
45+ if : matrix.os == 'macos-15 '
4846 shell : bash
4947 run : |
50- BUILD_DIR="tmp"
51- mkdir $BUILD_DIR
52- cp -R spec/support/libcobhandemo/* $BUILD_DIR
53- cd tmp
54- GOOS=darwin GOARCH=amd64 go build -buildmode=c-shared -ldflags='-s -w' -o libcobhandemo-x64.dylib libcobhandemo.go
48+ mkdir -p tmp
49+ cd spec/support/libcobhandemo
50+ CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -buildmode=c-shared -ldflags='-s -w' -o ../../../tmp/libcobhandemo-arm64.dylib .
5551
5652 - name : Run specs
5753 run : |
@@ -67,16 +63,16 @@ jobs:
6763 strategy :
6864 matrix :
6965 include :
70- - { os: ubuntu-20 .04, ruby: 3.2 }
66+ - { os: ubuntu-22 .04, ruby: 3.2 }
7167 fail-fast : false
7268
7369 steps :
74- - uses : actions/checkout@v2
70+ - uses : actions/checkout@v4
7571
7672 - name : Setup Go
77- uses : actions/setup-go@v2
73+ uses : actions/setup-go@v6.3.0
7874 with :
79- go-version : ' 1.20.5 '
75+ go-version : ' 1.24 '
8076
8177 - name : Install OS dependencies
8278 shell : bash
8783 - name : Build Linux ARM64
8884 shell : bash
8985 run : |
90- BUILD_DIR="tmp"
91- mkdir $BUILD_DIR
92- cp -R spec/support/libcobhandemo/* $BUILD_DIR
93- cd tmp
94- CGO_ENABLED=1 GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc go build -v -buildmode=c-shared -ldflags='-s -w' -o libcobhandemo-arm64.so libcobhandemo.go
86+ mkdir -p tmp
87+ cd spec/support/libcobhandemo
88+ CGO_ENABLED=1 GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc go build -v -buildmode=c-shared -ldflags='-s -w' -o ../../../tmp/libcobhandemo-arm64.so .
9589
9690 - name : Run specs and rubocop checks
9791 shell : bash
0 commit comments