@@ -3,10 +3,10 @@ name: CKB Start Validation
33on :
44 push :
55 branches :
6- - develop
6+ - ckb-compatible
77 pull_request :
88 branches :
9- - develop
9+ - ckb-compatible
1010 workflow_dispatch :
1111 inputs :
1212 ckb_version :
@@ -20,113 +20,113 @@ jobs:
2020 strategy :
2121 fail-fast : false
2222 matrix :
23- os : [ macos-13 , macos-14, ubuntu-22.04, ubuntu-22 .04-arm64, centos-8, windows-latest ]
23+ os : [macos-12 , macos-14, ubuntu-22.04, ubuntu-24 .04-arm64, centos-8, windows-latest]
2424 include :
25- - os : ubuntu-22.04
26- arch : x64
27- - os : ubuntu-22 .04-arm64
28- arch : arm64
29- runs-on : [ self-hosted, ubuntu-22 .04-arm64, ARM64, Linux ]
30- - os : macos-13
31- arch : x86
32- - os : macos-14
33- arch : arm64
34- - os : centos-8
35- arch : x64
36- runs-on : [ self-hosted, centos8, X64, Linux ]
37- - os : windows-latest
38- arch : x64
25+ - os : ubuntu-22.04
26+ arch : x64
27+ - os : ubuntu-24 .04-arm64
28+ arch : arm64
29+ runs-on : [self-hosted, ubuntu-24 .04-arm64, ARM64, Linux]
30+ - os : macos-12
31+ arch : x86
32+ - os : macos-14
33+ arch : arm64
34+ - os : centos-8
35+ arch : x64
36+ runs-on : [self-hosted, centos8, X64, Linux]
37+ - os : windows-latest
38+ arch : x64
3939
4040 steps :
41- - name : Checkout code
42- uses : actions/checkout@v3
41+ - name : Checkout code
42+ uses : actions/checkout@v3
4343
44- - name : Set CKB Release URL
45- run : |
46- echo "CKB_RELEASE_URL=https://github.com/nervosnetwork/ckb/releases/download/${{ github.event.inputs.ckb_version }}" >> $GITHUB_ENV
47- shell : bash # Linux and macOS use bash
44+ - name : Set CKB Release URL
45+ run : |
46+ echo "CKB_RELEASE_URL=https://github.com/nervosnetwork/ckb/releases/download/${{ github.event.inputs.ckb_version }}" >> $GITHUB_ENV
47+ shell : bash # Linux and macOS use bash
4848
49- - name : Set CKB Release URL for Windows
50- if : runner.os == 'Windows'
51- shell : pwsh
52- run : |
53- $env:CKB_RELEASE_URL = "https://github.com/nervosnetwork/ckb/releases/download/${{ github.event.inputs.ckb_version }}"
54- # Ensure GITHUB_ENV is correctly set
55- if ($env:GITHUB_ENV) {
56- echo "CKB_RELEASE_URL=$env:CKB_RELEASE_URL" | Out-File -FilePath $env:GITHUB_ENV -Append
57- } else {
58- Write-Error "GITHUB_ENV is not set."
59- }
49+ - name : Set CKB Release URL for Windows
50+ if : runner.os == 'Windows'
51+ shell : pwsh
52+ run : |
53+ $env:CKB_RELEASE_URL = "https://github.com/nervosnetwork/ckb/releases/download/${{ github.event.inputs.ckb_version }}"
54+ # Ensure GITHUB_ENV is correctly set
55+ if ($env:GITHUB_ENV) {
56+ echo "CKB_RELEASE_URL=$env:CKB_RELEASE_URL" | Out-File -FilePath $env:GITHUB_ENV -Append
57+ } else {
58+ Write-Error "GITHUB_ENV is not set."
59+ }
6060
61- - name : Download and extract CKB (Linux and macOS)
62- if : runner.os != 'Windows'
63- run : |
64- case "${{ matrix.os }}-${{ matrix.arch }}" in
65- "ubuntu-22.04-x64")
66- curl -LO $CKB_RELEASE_URL/ckb_${{ github.event.inputs.ckb_version }}_x86_64-unknown-linux-gnu.tar.gz
67- tar -xzf ckb_${{ github.event.inputs.ckb_version }}_x86_64-unknown-linux-gnu.tar.gz
68- ;;
69- "ubuntu-22 .04-arm64-arm64")
70- curl -LO $CKB_RELEASE_URL/ckb_${{ github.event.inputs.ckb_version }}_aarch64-unknown-linux-gnu.tar.gz
71- tar -xzf ckb_${{ github.event.inputs.ckb_version }}_aarch64-unknown-linux-gnu.tar.gz
72- ;;
73- "macos-13 -x86")
74- curl -LO $CKB_RELEASE_URL/ckb_${{ github.event.inputs.ckb_version }}_x86_64-apple-darwin-portable.zip
75- unzip ckb_${{ github.event.inputs.ckb_version }}_x86_64-apple-darwin-portable.zip
76- ;;
77- "macos-14-arm64")
78- curl -LO $CKB_RELEASE_URL/ckb_${{ github.event.inputs.ckb_version }}_aarch64-apple-darwin-portable.zip
79- unzip ckb_${{ github.event.inputs.ckb_version }}_aarch64-apple-darwin-portable.zip
80- ;;
81- "centos-8-x64")
82- curl -LO $CKB_RELEASE_URL/ckb_${{ github.event.inputs.ckb_version }}_x86_64-unknown-centos-gnu-portable.tar.gz
83- tar -xzf ckb_${{ github.event.inputs.ckb_version }}_x86_64-unknown-centos-gnu-portable.tar.gz
84- ;;
85- *)
86- echo "Unsupported OS or architecture: ${{ matrix.os }} ${{ matrix.arch }}"
87- exit 1
88- ;;
89- esac
61+ - name : Download and extract CKB (Linux and macOS)
62+ if : runner.os != 'Windows'
63+ run : |
64+ case "${{ matrix.os }}-${{ matrix.arch }}" in
65+ "ubuntu-22.04-x64")
66+ curl -LO $CKB_RELEASE_URL/ckb_${{ github.event.inputs.ckb_version }}_x86_64-unknown-linux-gnu.tar.gz
67+ tar -xzf ckb_${{ github.event.inputs.ckb_version }}_x86_64-unknown-linux-gnu.tar.gz
68+ ;;
69+ "ubuntu-24 .04-arm64-arm64")
70+ curl -LO $CKB_RELEASE_URL/ckb_${{ github.event.inputs.ckb_version }}_aarch64-unknown-linux-gnu.tar.gz
71+ tar -xzf ckb_${{ github.event.inputs.ckb_version }}_aarch64-unknown-linux-gnu.tar.gz
72+ ;;
73+ "macos-12 -x86")
74+ curl -LO $CKB_RELEASE_URL/ckb_${{ github.event.inputs.ckb_version }}_x86_64-apple-darwin-portable.zip
75+ unzip ckb_${{ github.event.inputs.ckb_version }}_x86_64-apple-darwin-portable.zip
76+ ;;
77+ "macos-14-arm64")
78+ curl -LO $CKB_RELEASE_URL/ckb_${{ github.event.inputs.ckb_version }}_aarch64-apple-darwin-portable.zip
79+ unzip ckb_${{ github.event.inputs.ckb_version }}_aarch64-apple-darwin-portable.zip
80+ ;;
81+ "centos-8-x64")
82+ curl -LO $CKB_RELEASE_URL/ckb_${{ github.event.inputs.ckb_version }}_x86_64-unknown-centos-gnu-portable.tar.gz
83+ tar -xzf ckb_${{ github.event.inputs.ckb_version }}_x86_64-unknown-centos-gnu-portable.tar.gz
84+ ;;
85+ *)
86+ echo "Unsupported OS or architecture: ${{ matrix.os }} ${{ matrix.arch }}"
87+ exit 1
88+ ;;
89+ esac
9090
91- - name : Download and extract CKB (Windows)
92- if : runner.os == 'Windows'
93- run : |
94- curl -LO $env:CKB_RELEASE_URL/ckb_${{ github.event.inputs.ckb_version }}_x86_64-pc-windows-msvc.zip
95- Expand-Archive -Path ckb_${{ github.event.inputs.ckb_version }}_x86_64-pc-windows-msvc.zip -DestinationPath .
91+ - name : Download and extract CKB (Windows)
92+ if : runner.os == 'Windows'
93+ run : |
94+ curl -LO $env:CKB_RELEASE_URL/ckb_${{ github.event.inputs.ckb_version }}_x86_64-pc-windows-msvc.zip
95+ Expand-Archive -Path ckb_${{ github.event.inputs.ckb_version }}_x86_64-pc-windows-msvc.zip -DestinationPath .
9696
97- - name : Run CKB node (Linux and macOS)
98- if : runner.os != 'Windows'
99- run : |
100- echo "Current OS: $(uname -s)"
101- echo "Current Architecture: $(uname -m)"
97+ - name : Run CKB node (Linux and macOS)
98+ if : runner.os != 'Windows'
99+ run : |
100+ echo "Current OS: $(uname -s)"
101+ echo "Current Architecture: $(uname -m)"
102102
103- case "${{ matrix.os }}" in
104- "ubuntu-22.04")
105- ./ckb_${{ github.event.inputs.ckb_version }}_x86_64-unknown-linux-gnu/ckb init
106- ;;
107- "ubuntu-22 .04-arm64")
108- ./ckb_${{ github.event.inputs.ckb_version }}_aarch64-unknown-linux-gnu/ckb init
109- ;;
110- "centos-8")
111- ./ckb_${{ github.event.inputs.ckb_version }}_x86_64-unknown-centos-gnu-portable/ckb init
112- ;;
113- "macos-13 ")
114- ./ckb_${{ github.event.inputs.ckb_version }}_x86_64-apple-darwin-portable/ckb init
115- ;;
116- "macos-14")
117- ./ckb_${{ github.event.inputs.ckb_version }}_aarch64-apple-darwin-portable/ckb init
118- ;;
119- *)
120- echo "Unsupported OS: ${{ matrix.os }}"
121- exit 1
122- ;;
123- esac
103+ case "${{ matrix.os }}" in
104+ "ubuntu-22.04")
105+ ./ckb_${{ github.event.inputs.ckb_version }}_x86_64-unknown-linux-gnu/ckb init
106+ ;;
107+ "ubuntu-24 .04-arm64")
108+ ./ckb_${{ github.event.inputs.ckb_version }}_aarch64-unknown-linux-gnu/ckb init
109+ ;;
110+ "centos-8")
111+ ./ckb_${{ github.event.inputs.ckb_version }}_x86_64-unknown-centos-gnu-portable/ckb init
112+ ;;
113+ "macos-12 ")
114+ ./ckb_${{ github.event.inputs.ckb_version }}_x86_64-apple-darwin-portable/ckb init
115+ ;;
116+ "macos-14")
117+ ./ckb_${{ github.event.inputs.ckb_version }}_aarch64-apple-darwin-portable/ckb init
118+ ;;
119+ *)
120+ echo "Unsupported OS: ${{ matrix.os }}"
121+ exit 1
122+ ;;
123+ esac
124124
125- - name : Run CKB node (Windows)
126- if : runner.os == 'Windows'
127- run : |
128- powershell -Command "./ckb_${{ github.event.inputs.ckb_version }}_x86_64-pc-windows-msvc/ckb.exe init"
129- if ($LASTEXITCODE -ne 0) {
130- Write-Error "CKB init failed."
131- }
132- shell : pwsh
125+ - name : Run CKB node (Windows)
126+ if : runner.os == 'Windows'
127+ run : |
128+ powershell -Command "./ckb_${{ github.event.inputs.ckb_version }}_x86_64-pc-windows-msvc/ckb.exe init"
129+ if ($LASTEXITCODE -ne 0) {
130+ Write-Error "CKB init failed."
131+ }
132+ shell : pwsh
0 commit comments