Skip to content

Commit

Permalink
Setup build and release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Rengyr committed Nov 4, 2024
1 parent 4fc4899 commit 0fe1c9d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# .github/workflows/build.yml
name: Build and release

on:
push:
branches: [main]

jobs:
build:
name: Build and Release
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Compile
id: compile
uses: rust-build/rust-build.action@v1.4.5
with:
RUSTTARGET: x86_64-unknown-linux-musl
UPLOAD_MODE: none
MINIFY: true
ARCHIVE_NAME: Vulpes-Porto_x86_64-unknown-linux-musl
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Binary
path: |
${{ steps.compile.outputs.BUILT_ARCHIVE }}
${{ steps.compile.outputs.BUILT_CHECKSUM }}
- name: Make release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Automatic Build"
files: |
${{ steps.compile.outputs.BUILT_ARCHIVE }}
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file added src/build_test.txt
Empty file.

0 comments on commit 0fe1c9d

Please # to comment.