Skip to content

add vendoring step

add vendoring step #80

Workflow file for this run

on:
push:
branches:
pull_request:
name: CI
jobs:
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
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-45
options: --privileged
steps:
- name: Install git-lfs
run: dnf update -y && dnf install -y git-lfs
- uses: actions/checkout@v2
with:
lfs: true
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4
with:
bundle: toolbxtuner.flatpak
manifest-path: build-aux/org.kuchelmeister.ToolboxTuner.Devel.json
run-tests: true
cache-key: flatpak-builder-${{ github.sha }}
- name: Install cargo
run: apt install cargo
- name: Vendor dependencies
run: ./build-aux/dist-vendor.sh 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@v2
- name: Show files
run: ls
- uses: "marvinpinto/action-automatic-releases@v1.2.1"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
automatic_release_tag: dev
title: 'Latest Development Build'
files: |
**/*.flatpak