Test3 #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2023-2024 Daniel Mueller <deso@posteo.net> | |
# SPDX-License-Identifier: GPL-3.0-or-later | |
name: Build | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
build: | |
name: Build statically linked binary | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt-get install --yes --no-install-recommends musl-tools | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
target: x86_64-unknown-linux-musl | |
- run: | | |
cargo install --bin=btrfs-backup --path=. --root=. --target x86_64-unknown-linux-musl | |
strip bin/btrfs-backup | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: btrfs-backup | |
path: bin/btrfs-backup |