Skip to content

Commit f7abe78

Browse files
committed
Skip Risc-V and OpenOCD builds
1 parent c2a9918 commit f7abe78

File tree

1 file changed

+131
-131
lines changed

1 file changed

+131
-131
lines changed

.github/workflows/build.yml

Lines changed: 131 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -1,131 +1,131 @@
1-
on:
2-
push:
3-
pull_request:
4-
5-
permissions:
6-
contents: write
7-
8-
env:
9-
SKIP_RISCV: 0
10-
SKIP_OPENOCD: 0
11-
12-
jobs:
13-
build_windows:
14-
name: Build Windows
15-
# runs-on: [self-hosted, Windows, x64]
16-
runs-on: 'windows-latest'
17-
18-
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v4
21-
# - name: Setup SSH Auth
22-
# if: runner.environment == 'github-hosted'
23-
# uses: webfactory/[email protected]
24-
# with:
25-
# ssh-private-key: ${{ secrets.SSH_KEY }}
26-
- name: Setup MSYS2
27-
uses: msys2/setup-msys2@v2
28-
- name: Build
29-
run: |
30-
subst P: .
31-
P:
32-
./build.ps1 ./config/x64-win.json -SkipSigning -MSYS2Path (msys2 -c 'cygpath -m /').TrimEnd('\/')
33-
- name: Upload Artifact
34-
uses: actions/upload-artifact@v4
35-
with:
36-
name: tools-x64-win
37-
path: |
38-
bin/picotool-*-x64-win.zip
39-
bin/pico-sdk-tools-*-x64-win.zip
40-
bin/openocd-*-x64-win.zip
41-
bin/riscv-toolchain-*-x64-win.zip
42-
- name: Add Release Asset
43-
uses: softprops/action-gh-release@v2
44-
if: startsWith(github.ref, 'refs/tags/')
45-
with:
46-
files: |
47-
bin/picotool-*-x64-win.zip
48-
bin/pico-sdk-tools-*-x64-win.zip
49-
bin/openocd-*-x64-win.zip
50-
bin/riscv-toolchain-*-x64-win.zip
51-
52-
build_macos:
53-
name: Build MacOS
54-
# runs-on: [self-hosted, macOS]
55-
runs-on: 'macos-latest'
56-
57-
steps:
58-
- name: Checkout
59-
uses: actions/checkout@v4
60-
- name: Set up Homebrew
61-
if: runner.environment == 'github-hosted'
62-
id: set-up-homebrew
63-
uses: Homebrew/actions/setup-homebrew@master
64-
- name: Set up x86_64 Homebrew
65-
if: runner.environment == 'github-hosted'
66-
run: |
67-
NONINTERACTIVE=1 arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
68-
# - name: Setup SSH Auth
69-
# if: runner.environment == 'github-hosted'
70-
# uses: webfactory/[email protected]
71-
# with:
72-
# ssh-private-key: ${{ secrets.SSH_KEY }}
73-
- name: Build
74-
run: ./build_macos.sh
75-
- name: Upload Artifact
76-
uses: actions/upload-artifact@v4
77-
with:
78-
name: tools-mac
79-
path: |
80-
bin/picotool-*-mac.zip
81-
bin/pico-sdk-tools-*-mac.zip
82-
bin/openocd-*-mac.zip
83-
bin/riscv-toolchain-*.zip
84-
- name: Add Release Asset
85-
uses: softprops/action-gh-release@v2
86-
if: startsWith(github.ref, 'refs/tags/')
87-
with:
88-
files: |
89-
bin/picotool-*-mac.zip
90-
bin/pico-sdk-tools-*-mac.zip
91-
bin/openocd-*-mac.zip
92-
bin/riscv-toolchain-*.zip
93-
94-
build_linux:
95-
name: Build Linux
96-
# strategy:
97-
# matrix:
98-
# os: [[self-hosted, linux, x64], [self-hosted, linux, arm64]]
99-
strategy:
100-
matrix:
101-
os: [ubuntu-latest, [self-hosted, linux, arm64]]
102-
runs-on: ${{ matrix.os }}
103-
104-
steps:
105-
- name: Checkout
106-
uses: actions/checkout@v4
107-
# - name: Setup SSH Auth
108-
# if: runner.environment == 'github-hosted'
109-
# uses: webfactory/[email protected]
110-
# with:
111-
# ssh-private-key: ${{ secrets.SSH_KEY }}
112-
- name: Build
113-
run: ./build_linux.sh
114-
- name: Upload Artifact
115-
uses: actions/upload-artifact@v4
116-
with:
117-
name: tools-lin-${{ runner.arch }}
118-
path: |
119-
bin/picotool-*-lin.tar.gz
120-
bin/pico-sdk-tools-*-lin.tar.gz
121-
bin/openocd-*-lin.tar.gz
122-
bin/riscv-toolchain-*-lin.tar.gz
123-
- name: Add Release Asset
124-
uses: softprops/action-gh-release@v2
125-
if: startsWith(github.ref, 'refs/tags/')
126-
with:
127-
files: |
128-
bin/picotool-*-lin.tar.gz
129-
bin/pico-sdk-tools-*-lin.tar.gz
130-
bin/openocd-*-lin.tar.gz
131-
bin/riscv-toolchain-*-lin.tar.gz
1+
on:
2+
push:
3+
pull_request:
4+
5+
permissions:
6+
contents: write
7+
8+
env:
9+
SKIP_RISCV: 1
10+
SKIP_OPENOCD: 1
11+
12+
jobs:
13+
build_windows:
14+
name: Build Windows
15+
# runs-on: [self-hosted, Windows, x64]
16+
runs-on: 'windows-latest'
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
# - name: Setup SSH Auth
22+
# if: runner.environment == 'github-hosted'
23+
# uses: webfactory/[email protected]
24+
# with:
25+
# ssh-private-key: ${{ secrets.SSH_KEY }}
26+
- name: Setup MSYS2
27+
uses: msys2/setup-msys2@v2
28+
- name: Build
29+
run: |
30+
subst P: .
31+
P:
32+
./build.ps1 ./config/x64-win.json -SkipSigning -MSYS2Path (msys2 -c 'cygpath -m /').TrimEnd('\/')
33+
- name: Upload Artifact
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: tools-x64-win
37+
path: |
38+
bin/picotool-*-x64-win.zip
39+
bin/pico-sdk-tools-*-x64-win.zip
40+
bin/openocd-*-x64-win.zip
41+
bin/riscv-toolchain-*-x64-win.zip
42+
- name: Add Release Asset
43+
uses: softprops/action-gh-release@v2
44+
if: startsWith(github.ref, 'refs/tags/')
45+
with:
46+
files: |
47+
bin/picotool-*-x64-win.zip
48+
bin/pico-sdk-tools-*-x64-win.zip
49+
bin/openocd-*-x64-win.zip
50+
bin/riscv-toolchain-*-x64-win.zip
51+
52+
build_macos:
53+
name: Build MacOS
54+
# runs-on: [self-hosted, macOS]
55+
runs-on: 'macos-latest'
56+
57+
steps:
58+
- name: Checkout
59+
uses: actions/checkout@v4
60+
- name: Set up Homebrew
61+
if: runner.environment == 'github-hosted'
62+
id: set-up-homebrew
63+
uses: Homebrew/actions/setup-homebrew@master
64+
- name: Set up x86_64 Homebrew
65+
if: runner.environment == 'github-hosted'
66+
run: |
67+
NONINTERACTIVE=1 arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
68+
# - name: Setup SSH Auth
69+
# if: runner.environment == 'github-hosted'
70+
# uses: webfactory/[email protected]
71+
# with:
72+
# ssh-private-key: ${{ secrets.SSH_KEY }}
73+
- name: Build
74+
run: ./build_macos.sh
75+
- name: Upload Artifact
76+
uses: actions/upload-artifact@v4
77+
with:
78+
name: tools-mac
79+
path: |
80+
bin/picotool-*-mac.zip
81+
bin/pico-sdk-tools-*-mac.zip
82+
bin/openocd-*-mac.zip
83+
bin/riscv-toolchain-*.zip
84+
- name: Add Release Asset
85+
uses: softprops/action-gh-release@v2
86+
if: startsWith(github.ref, 'refs/tags/')
87+
with:
88+
files: |
89+
bin/picotool-*-mac.zip
90+
bin/pico-sdk-tools-*-mac.zip
91+
bin/openocd-*-mac.zip
92+
bin/riscv-toolchain-*.zip
93+
94+
build_linux:
95+
name: Build Linux
96+
# strategy:
97+
# matrix:
98+
# os: [[self-hosted, linux, x64], [self-hosted, linux, arm64]]
99+
strategy:
100+
matrix:
101+
os: [ubuntu-latest, [self-hosted, linux, arm64]]
102+
runs-on: ${{ matrix.os }}
103+
104+
steps:
105+
- name: Checkout
106+
uses: actions/checkout@v4
107+
# - name: Setup SSH Auth
108+
# if: runner.environment == 'github-hosted'
109+
# uses: webfactory/[email protected]
110+
# with:
111+
# ssh-private-key: ${{ secrets.SSH_KEY }}
112+
- name: Build
113+
run: ./build_linux.sh
114+
- name: Upload Artifact
115+
uses: actions/upload-artifact@v4
116+
with:
117+
name: tools-lin-${{ runner.arch }}
118+
path: |
119+
bin/picotool-*-lin.tar.gz
120+
bin/pico-sdk-tools-*-lin.tar.gz
121+
bin/openocd-*-lin.tar.gz
122+
bin/riscv-toolchain-*-lin.tar.gz
123+
- name: Add Release Asset
124+
uses: softprops/action-gh-release@v2
125+
if: startsWith(github.ref, 'refs/tags/')
126+
with:
127+
files: |
128+
bin/picotool-*-lin.tar.gz
129+
bin/pico-sdk-tools-*-lin.tar.gz
130+
bin/openocd-*-lin.tar.gz
131+
bin/riscv-toolchain-*-lin.tar.gz

0 commit comments

Comments
 (0)