File tree Expand file tree Collapse file tree 2 files changed +42
-4
lines changed Expand file tree Collapse file tree 2 files changed +42
-4
lines changed Original file line number Diff line number Diff line change 1+ name : Create Releases
2+ on :
3+ push :
4+ # Eventually run this only on release branches
5+ # branches:
6+ # - 'releases/**'
7+
8+ env :
9+ CARGO_TERM_COLOR : always
10+ CARGO_NET_GIT_FETCH_WITH_CLI : true
11+
12+ jobs :
13+ release-linux :
14+ name : Release Linux
15+ runs-on : ubuntu-22.04
16+ steps :
17+ - uses : actions/checkout@v3
18+
19+ - name : Install dependencies
20+ run : |
21+ sudo apt-get update
22+ sudo apt-get install -y libudev-dev libasound2-dev
23+
24+ - name : Setup Rust toolchain
25+ run : rustup show
26+
27+ - uses : ruby/setup-ruby@v1
28+ with :
29+ ruby-version : ' 3.1'
30+
31+ - name : Build Linux tool and create deb
32+ run : ./release/release.sh
33+
34+ - name : Upload Linux deb
35+ uses : actions/upload-artifact@v3
36+ with :
37+ name : framework-inputmodule-rs-0.0.1.deb
38+ path : release/framework-inputmodule-rs-0.0.1.deb
Original file line number Diff line number Diff line change @@ -10,23 +10,23 @@ if [ $installed = 'false' ]; then
1010fi
1111
1212: ' Running the build'
13- cargo build
13+ cargo build --target x86_64-unknown-linux-gnu -p inputmodule-control
1414
1515: " Packaging"
1616fpm \
1717 -s dir -t deb \
18- -p framework-inputmodule-rs-0.0.1.deb \
18+ -p release/ framework-inputmodule-rs-0.0.1.deb \
1919 --name framework-inputmodule-rs \
2020 --version 0.0.1 \
2121 --architecture all \
2222 --description " framework-inputmodule-rs runs Framework Laptop 16 input modules and keeps their firmware up to date" \
2323 --url " https://frame.work" \
2424 --maintainer
" Framework <[email protected] >" \
25- --deb-systemd ./framework-inputmodule-rs.service \
25+ --deb-systemd ./release/ framework-inputmodule-rs.service \
2626 --deb-systemd-enable \
2727 --deb-systemd-auto-start \
2828 --deb-systemd-restart-after-upgrade \
29- --after-install postinstall.sh \
29+ --after-install ./release/ postinstall.sh \
3030 target/x86_64-unknown-linux-gnu/debug/inputmodule-control=/usr/bin/framework-inputmodule-rs
3131
3232: ' Packaging successful, install with "sudo dpkg -i <pkg-name>.deb"'
You can’t perform that action at this time.
0 commit comments