Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
👷 Deployment preparations
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Perestoronin committed Jun 8, 2023
1 parent 46c8ee0 commit 9ea9acf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ jobs:
with:
fetch-depth: 0

- name: 🖊 Set release version
run: |
echo 'version = "${{ github.ref_name }}"'
sed -i -e 's/version = "0.0.0"/version = "${{ github.ref_name }}"/g' Cargo.toml
sed -i -e 's/version = "0.0.0"/version = "${{ github.ref_name }}"/g' Cargo.lock
- name: ⚡️ Rust Cache
uses: Swatinem/rust-cache@v2
with:
key: "rust"
cache-on-failure: true

- name: 📝 Build Changelog
id: changelog
uses: Bullrich/generate-release-changelog@master
Expand All @@ -33,18 +45,13 @@ jobs:
release_name: ${{ github.ref_name }}
body: ${{ steps.changelog.outputs.changelog }}

- name: 👷 Build
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target=aarch64-unknown-linux-gnu

- name: 🖊 Set release version
- name: ✨ Install Cross
run: |
echo 'version = "${{ github.ref_name }}"'
sed -i -e 's/version = "0.0.0"/version = "${{ github.ref_name }}"/g' Cargo.toml
sed -i -e 's/version = "0.0.0"/version = "${{ github.ref_name }}"/g' Cargo.lock
wget --quiet https://github.com/rust-embedded/cross/releases/download/v0.2.5/cross-v0.2.5-x86_64-unknown-linux-gnu.tar.gz
tar -xvzf cross-v0.2.5-x86_64-unknown-linux-gnu.tar.gz
- name: 👷 Build
run: ./cross build --target=aarch64-unknown-linux-gnu --release

- name: 📤 Upload release asset
uses: actions/upload-release-asset@v1
Expand Down
3 changes: 1 addition & 2 deletions src/web/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ use std::{collections::hash_map::RandomState, sync::Arc, time::Duration};

use moka::future::Cache;

#[cfg(test)]
use crate::prelude::Result;
use crate::{
db::Db,
prelude::*,
weegee::{VehiclesStats, WeeGee},
};

Expand Down

0 comments on commit 9ea9acf

Please sign in to comment.