Create rust.yml

This commit is contained in:
Ashcon Mohseninia (RAND_ASH) 2022-09-10 21:39:26 +01:00 committed by GitHub
parent 755963bd1a
commit decdfcfa03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 35 additions and 0 deletions

35
.github/workflows/rust.yml vendored Normal file
View File

@ -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