33 push :
44
55jobs :
6- # Won't work because pkg-config can't find hidapi.
7- # I changed build.rs to search for 'hidapi-libusb', which is how it's installed
8- # on Ubuntu. But that still can't find it.
9- # freebsd-cross-build :
10- # name: Cross-Build for FreeBSD
11- # runs-on: 'ubuntu-22.04'
12- # env:
13- # CARGO_NET_GIT_FETCH_WITH_CLI: true
14- # steps:
15- # - uses: actions/checkout@v3
16-
17- # - name: Install dependencies
18- # run: |
19- # sudo apt-get update
20- # sudo apt-get install -y libudev-dev libhidapi-dev
21-
22- # - name: Setup Rust toolchain
23- # run: rustup show
24-
25- # - name: Install cross compilation tool
26- # run: cargo install cross
27-
28- # - name: Build FreeBSD tool
29- # run: cross build --target=x86_64-unknown-freebsd --no-default-features --features unix
30-
31- # - name: Upload FreeBSD App
32- # uses: actions/upload-artifact@v3
33- # with:
34- # name: framework_tool_freebsd
35- # path: target/x86_64-unknown-freebsd/debug/framework_tool
6+ freebsd-cross-build :
7+ name : Cross-Build for FreeBSD
8+ runs-on : ' ubuntu-24.04 '
9+ env :
10+ CARGO_NET_GIT_FETCH_WITH_CLI : true
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - name : Install dependencies
15+ run : |
16+ sudo apt-get update
17+ sudo apt-get install -y libudev-dev libhidapi-dev
18+
19+ - name : Setup Rust toolchain
20+ run : |
21+ rm rust-toolchain.toml
22+ rustup toolchain install 1.75.0-x86_64-unknown-freebsd
23+ rustup show
24+
25+ - name : Install cross compilation tool
26+ run : cargo install cross
27+
28+ - name : Build FreeBSD tool
29+ run : cross build --target=x86_64-unknown-freebsd --no-default-features --features cross_freebsd
30+
31+ - name : Upload FreeBSD App
32+ uses : actions/upload-artifact@v4
33+ with :
34+ name : framework_tool_freebsd
35+ path : target/x86_64-unknown-freebsd/debug/framework_tool
3636
3737 build :
3838 name : Build Linux and UEFI
39- runs-on : ubuntu-22 .04
39+ runs-on : ubuntu-24 .04
4040 env :
4141 CARGO_NET_GIT_FETCH_WITH_CLI : true
4242 steps :
43- - uses : actions/checkout@v3
43+ - uses : actions/checkout@v4
4444
4545 - name : Install dependencies
4646 run : |
6060 run : cargo run -- --help
6161
6262 - name : Upload Linux App
63- uses : actions/upload-artifact@v3
63+ uses : actions/upload-artifact@v4
6464 with :
6565 name : framework_tool
6666 path : target/debug/framework_tool
6969 run : make -C framework_uefi build/x86_64-unknown-uefi/boot.efi
7070
7171 - name : Upload UEFI App
72- uses : actions/upload-artifact@v3
72+ uses : actions/upload-artifact@v4
7373 with :
7474 name : framework.efi
7575 path : framework_uefi/build/x86_64-unknown-uefi/boot.efi
8686 env :
8787 CARGO_NET_GIT_FETCH_WITH_CLI : true
8888 steps :
89- - uses : actions/checkout@v3
89+ - uses : actions/checkout@v4
9090
9191 - name : Setup Rust toolchain
9292 run : rustup show
@@ -101,7 +101,7 @@ jobs:
101101 run : cargo run --no-default-features --features "windows" -- --help
102102
103103 - name : Upload Windows App
104- uses : actions/upload-artifact@v3
104+ uses : actions/upload-artifact@v4
105105 with :
106106 name : framework_tool.exe
107107 path : target/debug/framework_tool.exe
@@ -114,7 +114,7 @@ jobs:
114114 CARGO_NET_GIT_FETCH_WITH_CLI : true
115115 steps :
116116 - name : Checkout sources
117- uses : actions/checkout@v3
117+ uses : actions/checkout@v4
118118
119119 - name : Install dependencies
120120 run : |
@@ -129,11 +129,11 @@ jobs:
129129
130130 lints :
131131 name : Lints
132- runs-on : ubuntu-22 .04
132+ runs-on : ubuntu-24 .04
133133 env :
134134 CARGO_NET_GIT_FETCH_WITH_CLI : true
135135 steps :
136- - uses : actions/checkout@v3
136+ - uses : actions/checkout@v4
137137
138138 - name : Install dependencies
139139 run : |
@@ -152,13 +152,13 @@ jobs:
152152 # Just make sure doc generation works
153153 doc :
154154 name : Generate docs
155- runs-on : ubuntu-22 .04
155+ runs-on : ubuntu-24 .04
156156 env :
157157 CARGO_NET_GIT_FETCH_WITH_CLI : true
158158 # Fail if warnings are produced
159159 RUSTDOCFLAGS : -Dwarnings
160160 steps :
161- - uses : actions/checkout@v3
161+ - uses : actions/checkout@v4
162162
163163 - name : Install dependencies
164164 run : |
0 commit comments