Create rust.yml
This commit is contained in:
parent
755963bd1a
commit
decdfcfa03
|
@ -0,0 +1,35 @@
|
|||
name: Rust
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
Linux-App:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install deps
|
||||
run: sudo apt-get install -y binutils coreutils desktop-file-utils fakeroot fuse libgdk-pixbuf2.0-dev patchelf python3-pip python3-setuptools squashfs-tools strace util-linux zsync libgtk-3-dev
|
||||
- name: Download appimagekit
|
||||
run: sudo wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/local/bin/appimagetool
|
||||
- name: Make appimagetool exec
|
||||
run: sudo chmod +x /usr/local/bin/appimagetool
|
||||
- name: Install cargo-appimage
|
||||
run: cargo install cargo-appimage
|
||||
- name: Build executable
|
||||
working-directory: ./config_app
|
||||
run: cargo build --verbose --release
|
||||
- name: Build appimage
|
||||
working-directory: ./config_app
|
||||
run: cargo appimage
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: config-app-appimage
|
||||
path: config_app/*.AppImage
|
||||
|
Loading…
Reference in New Issue