Skip to content

Commit

Permalink
fix releases
Browse files Browse the repository at this point in the history
  • Loading branch information
soywod committed Jul 18, 2023
1 parent cb1178e commit 34ad1ad
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v20
uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-22.11
extra_nix_config: |
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v20
uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-22.11
extra_nix_config: |
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Fixed windows releases due to `coredump` crate compilation error.
- Fixed macos releases due to macos 12 System Integrity Protection.

## [0.8.2] - 2023-07-18

### Changed
Expand Down
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ clap = "4.0"
clap_complete = "4.0"
clap_mangen = "0.2"
console = "0.15.2"
coredump = "=0.1.2"
dialoguer = "0.10.2"
dirs = "4.0.0"
email_address = "0.2.4"
Expand Down Expand Up @@ -67,3 +66,6 @@ uuid = { version = "0.8", features = ["v4"] }
rusqlite = { version = "0.29", features = [] }
[target.'cfg(not(target_env = "musl"))'.dependencies]
rusqlite = { version = "0.29", features = ["bundled"] }

[target.'cfg(not(target_env = "windows"))'.dependencies]
coredump = "=0.1.2"
2 changes: 1 addition & 1 deletion rust-toolchain.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fenix:

let
file = ./rust-toolchain.toml;
sha256 = "gdYqng0y9iHYzYPAdkC/ka3DRny3La/S5G8ASj0Ayyc=";
sha256 = "ks0nMEGGXKrHnfv4Fku+vhQ7gx76ruv6Ij4fKZR3l78=";
in
{
fromFile = { system }: fenix.packages.${system}.fromToolchainFile {
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use anyhow::{anyhow, Context, Result};
use clap::Command;
use coredump::register_panic_handler;
use log::{debug, warn};
#[cfg(feature = "imap-backend")]
use pimalaya_email::backend::ImapBackend;
Expand Down Expand Up @@ -49,7 +48,8 @@ fn create_app() -> Command {
#[allow(clippy::single_match)]
#[tokio::main]
async fn main() -> Result<()> {
if let Err((_, err)) = register_panic_handler() {
#[cfg(not(target_os = "windows"))]
if let Err((_, err)) = coredump::register_panic_handler() {
warn!("cannot register custom panic handler: {err}");
debug!("cannot register custom panic handler: {err:?}");
}
Expand Down

0 comments on commit 34ad1ad

Please sign in to comment.