Skip to content

Update ci.yml

Update ci.yml #88

Workflow file for this run

on:
push:
pull_request:
name: CI
jobs:
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt
- name: Create blank versions of configured file
run: echo -e "" >> src/config.rs
- name: Run cargo fmt
run: cargo fmt --all -- --check
flatpak:
name: Flatpak
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-46
options: --privileged
steps:
- name: Install pre-requisits
run: dnf update -y && dnf install -y git-lfs cargo
- uses: actions/checkout@v4
with:
lfs: true
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6
with:
bundle: toolbxtuner.flatpak
manifest-path: build-aux/org.kuchelmeister.ToolboxTuner.Devel.json
run-tests: true
cache-key: flatpak-builder-${{ github.sha }}
- name: Vendor dependencies
run: ./build-aux/dist-vendor.sh dist .
- uses: actions/upload-artifact@v4
with:
name: vendor
path: dist
- name: ls
run: ls
publish-prerelease:
needs: [flatpak]
runs-on: ubuntu-latest
if: startsWith(github.ref_name, 'main') && github.ref_type == 'branch'
steps:
- uses: actions/download-artifact@v4
- name: Show files
run: ls
- uses: "dciborow/action-github-releases@v1.0.1"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
automatic_release_tag: dev
title: 'Latest Development Build'
files: |
**/*.flatpak
vendor