Skip to content

Commit d232c2d

Browse files
committed
add macos latest runner to test workflow
1 parent 6fcc368 commit d232c2d

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ on:
44

55
jobs:
66
test:
7-
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
os:
10+
- ubuntu-latest
11+
- macos-latest
12+
runs-on: ${{ matrix.os }}
813
steps:
914
- uses: actions/checkout@v4
1015
- name: build
@@ -17,19 +22,6 @@ jobs:
1722
sleep 1
1823
curl http://127.0.0.1:8080/delay/3
1924
kill $SERVER_PID
20-
- name: install certs
21-
run: |
22-
openssl req \
23-
-newkey rsa:2048 \
24-
-x509 \
25-
-sha256 \
26-
-days 10000 \
27-
-nodes \
28-
-out cert.pem \
29-
-keyout key.pem \
30-
-subj "/C=US/ST=MN/L=Minneapolis/O=cosock/CN=cosock/" \
31-
&& sudo cp cert.pem /usr/local/share/ca-certificates \
32-
&& sudo update-ca-certificates
3325
- name: run-with-tls
3426
run: |
3527
./target/debug/cosock-test-server 8443 . &

dist-workspace.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ci = "github"
1010
# The installers to generate for each app
1111
installers = ["shell"]
1212
# Target platforms to build apps for (Rust target-triple syntax)
13-
targets = ["x86_64-unknown-linux-gnu"]
13+
targets = [ "x86_64-unknown-linux-gnu", "aarch64-apple-darwin" ]
1414
# Path that installers should place binaries in
1515
install-path = "CARGO_HOME"
1616
# Whether to install an updater program

0 commit comments

Comments
 (0)