-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.31 KB
/
test.yml
File metadata and controls
56 lines (48 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Test
on:
push:
branches: ["master"]
jobs:
build:
strategy:
matrix:
os:
- runner: "ubuntu-24.04"
sys: "linux"
- runner: "ubuntu-24.04-arm"
sys: "linux"
- runner: "macos-15"
sys: "darwin"
- runner: "windows-2025"
sys: "windows"
shell: "powershell"
- runner: "windows-2025"
sys: "windows"
shell: "pwsh"
mirror: ["", "--mirror"]
fail-fast: false
runs-on: ${{ matrix.os.runner }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Cangjie
uses: Zxilly/setup-cangjie@v1
with:
channel: "lts"
token: ${{ secrets.GITCODE_TOKEN }}
- name: Test unix install
if: matrix.os.sys != 'windows'
run: |
chmod +x public/install.sh
bash public/install.sh ${{ matrix.mirror }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Test windows install
if: matrix.os.sys == 'windows'
run: |
${{ matrix.os.shell }} -File public/install.ps1 ${{ matrix.mirror }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Test cjbind
run: |
cjbind --version