Skip to content

Commit

Permalink
Add release step
Browse files Browse the repository at this point in the history
  • Loading branch information
nigeleke committed Oct 15, 2024
1 parent 8a9a425 commit 9e73fc8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[profile.release]
opt-level = "z"
debug = false
lto = true
codegen-units = 1
panic = "abort"
strip = true
incremental = false
2 changes: 1 addition & 1 deletion .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v4

- name: Compile
run: cargo build --verbose
run: dx build --verbose

- name: Lint
run: cargo clippy
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Run release-cycle on main commits.
#
# Release cycle comprises:
# - build release versions of application
# - publish app
#
name: Release Cycle

on:
workflow_run:
workflows: ["Release Cycle"]
branches: [main]
types:
- completed

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build
run: dx build --release

0 comments on commit 9e73fc8

Please sign in to comment.