Skip to content

Commit

Permalink
Github Action to generate artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
altmannmarcelo committed Mar 22, 2024
1 parent 88296df commit 291c8f2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build

# Let it run on all for now
# on: [push, pull_request]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install pre-requirements
run: sudo curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -q -y

- name: Install cargo-generate-rpm
run: cargo install cargo-generate-rpm

- name: Build
run: cargo build --release

- name: Generate RPM
run: cargo generate-rpm

- name: Upload
uses: actions/upload-artifact@v4
with:
path: target/generate-rpm/


0 comments on commit 291c8f2

Please sign in to comment.