rsa/.gitea/workflows/build.yaml
spv 65c912e5d6
All checks were successful
Build / release (push) Successful in 1m49s
bruh
Signed-off-by: spv <spv0x04@proton.me>
2024-07-26 14:03:28 +02:00

38 lines
1.2 KiB
YAML

name: Build
run-name: Im about to BUILLLLDDDDDDD
on:
push:
branches:
- 'master'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Rust
run: curl https://sh.rustup.rs -sSf | sh -s -- -y && . "$HOME/.cargo/env" && rustup target add x86_64-pc-windows-gnu
- name: Install Mingw
run: apt update && apt install -y mingw-w64
- name: Build linux
run: ~/.cargo/bin/cargo build --release
- name: Build Windows
run: ~/.cargo/bin/cargo build --release --target x86_64-pc-windows-gnu
- name: Hash Release
id: get-hash
run: |
echo "TAG_NAME=$(cat VERSION.txt)" >> $GITHUB_OUTPUT
- name: Publish
uses: akkuman/gitea-release-action@v1
env:
NODE_OPTIONS: '--trace-warnings'
with:
sha256sum: true
body_path: ./CHANGES.md
tag_name: '${{steps.get-hash.outputs.TAG_NAME}}'
name: 'Version ${{steps.get-hash.outputs.TAG_NAME}}'
files: |-
./target/release/rsa
./target/x86_64-pc-windows-gnu/release/rsa.exe