File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ permissions :
13+ contents : write
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - uses : actions/checkout@v4
21+ with :
22+ submodules : recursive
23+ - name : Prepare
24+ run : |
25+ rustup +nightly target add thumbv8m.main-none-eabihf
26+ cargo install flip-link
27+ export PICO_SDK_PATH=$PWD/pico-sdk
28+ mkdir -p picotool/build
29+ cd picotool/build
30+ cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 ..
31+ make
32+ - name : Build
33+ run : make image
34+ - name : Upload artifact
35+ uses : actions/upload-artifact@v4
36+ with :
37+ path : " wezterm-*.uf2"
38+ - name : zip for dev release
39+ # Use a singular (non-version-dependent) name so that we don't need to
40+ # wrange retention processing in the release
41+ run : 7z a -tzip wezterm-picocalc.zip wezterm-*.uf2
42+ - name : Upload Release Asset
43+ uses : softprops/action-gh-release@v2
44+ if : github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
45+ with :
46+ tag_name : dev
47+ files : |
48+ wezterm-picocalc.zip
You can’t perform that action at this time.
0 commit comments