+
Skip to content

add nix based development environment #72

add nix based development environment

add nix based development environment #72

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [ ubuntu-20.04, ubuntu-22.04, ubuntu-24.04 ]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup cargo
run: cargo install cargo-deb
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run clippy
run: cargo clippy --verbose
- name: Create debian package
run: cargo deb
- name: Setup integration tests
run: |
sudo apt-get update
sudo apt-get install -y bats
- name: Run integration tests
run: bats test
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: fetch-${{ matrix.platform }}.deb
path: target/debian/fetch_*_amd64.deb
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载