Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #27

Merged
merged 17 commits into from
Feb 3, 2024
Merged

Dev #27

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/rust.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
name: Rust
name: Build

on:
push:
branches: [ "main" ]
branches: [ "main", "dev" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "dev" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build
Expand Down
34 changes: 22 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,38 @@ jobs:
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Publish crate
run: cargo publish
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install cargo-deb
uses: baptiste0928/cargo-install@v2.0.0
uses: baptiste0928/cargo-install@v3.0.0
with:
crate: cargo-deb
# - name: Install cargo-generate-rpm
# uses: baptiste0928/cargo-install@v2.0.0
# with:
# crate: cargo-generate-rpm
- name: Install cargo-generate-rpm
uses: baptiste0928/cargo-install@v3.0.0
with:
crate: cargo-generate-rpm
- name: Build
run: cargo build --release
- name: Bundle
- name: Bundle .deb
run: cargo deb
- name: Bundle .rpm
run: cargo generate-rpm
- name: Compress binary
run: tar czvf papa.tar.gz -C target/release papa
- name: Create release notes
id: changelog
uses: orhun/git-cliff-action@v2.0.6
uses: orhun/git-cliff-action@v2.3.0
with:
args: -v -l
args: -v -l --strip all
- name: Release
uses: softprops/[email protected]
with:
Expand All @@ -52,14 +56,17 @@ jobs:
files: |
LICENSE
target/debian/*.deb
target/generate-rpm/*.rpm
papa.tar.gz

windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install cargo-wix
uses: baptiste0928/cargo-install@v2.0.0
uses: baptiste0928/cargo-install@v3.0.0
with:
crate: cargo-wix
- name: Build
Expand All @@ -68,6 +75,9 @@ jobs:
run: |
$version= "${{ github.ref_name }}" -replace "[A-Za-z]*"
cargo wix -p papa -b "C:\Program Files (x86)\WiX Toolset v3.11\bin" --nocapture -i $version
- name: Compress binary
run: |
Compress-Archive -Path "target\release\papa.exe" -DestinationPath "papa.zip"
- name: Release
uses: softprops/[email protected]
with:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/mods
/northstar
/packages
Cargo.lock
.pijul
.ignore
ns_*
Expand Down
Loading