Skip to content

Add nix dev files

Add nix dev files #32

Workflow file for this run

name: Build giggio/speedtest image
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: Install Rust Stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
override: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
version: latest
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u giggio --password-stdin
- name: Check format
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Check with Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
- name: Build arm64
uses: actions-rs/cargo@v1
with:
command: build
use-cross: true
args: --release --target aarch64-unknown-linux-musl
- name: Build amd64
uses: actions-rs/cargo@v1
with:
command: build
use-cross: true
args: --release --target x86_64-unknown-linux-musl
- name: Build arm32v7
uses: actions-rs/cargo@v1
with:
command: build
use-cross: true
args: --release --target armv7-unknown-linux-musleabihf
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
use-cross: true
args: --target x86_64-unknown-linux-musl
- name: Release the image
run: make release_with_docker_only