Skip to content

Commit

Permalink
Added build Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
fri committed Jan 4, 2024
1 parent 9adf7c9 commit 365413c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on: workflow_dispatch

jobs:
build:
strategy:
fail-fast: false
matrix:
target:
- x86_64-unknown-linux-musl
include:
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Build Linux
if: matrix.os == 'ubuntu-latest'
run: |
docker run --rm -t \
-v $HOME/.cargo/registry/:/root/.cargo/registry \
-v "$(pwd)":/volume \
clux/muslrust:stable \
cargo build --release --target ${{ matrix.target }}
- name: Upload
uses: actions/upload-artifact@v2
with:
name: fcd-${{ matrix.os }}-amd64
path: target/${{ matrix.target }}/release/fcd
if-no-files-found: error

0 comments on commit 365413c

Please sign in to comment.