Skip to content

Use gitoxide instead of libgit2 #95

Use gitoxide instead of libgit2

Use gitoxide instead of libgit2 #95

Workflow file for this run

# This workflow will be used to verify a pull request, this is to make sure that on pull requests it doesn't mess with the already available binary on the main workflow
name: Pull Request Test
on:
pull_request:
branches: [main]
paths-ignore:
- "README.md"
- "**.json"
- "**.yml"
- "LICENSE"
- "!.github/workflows/pull-request.yml"
- "installer/**"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-13]
include:
- os: ubuntu-latest
file-name: qpm
prefix: linux
- os: macOS-13
file-name: qpm
prefix: macos
- os: windows-latest
file-name: qpm.exe
prefix: windows
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Get libdbus if Ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get install -y libdbus-1-dev
- name: Cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --release
- name: Cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Upload executable
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.prefix }}-${{ matrix.file-name }}
path: ./target/release/${{ matrix.file-name }}
if-no-files-found: error