Skip to content

Commit

Permalink
Default to main
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Dec 28, 2023
1 parent 0b6addf commit 5a62859
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 30 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,16 @@ jobs:
run: |
mv target/${{ matrix.target.name }}/ci-release/<NAME>${{ matrix.target.extension }} .
zstd --ultra -22 -o <NAME>-${{ matrix.target.name }}.zst <NAME>${{ matrix.target.extension }}
- name: Collect artifact
- name: Collect artifacts
run: |
mkdir -p artifacts
mv <NAME>-${{ matrix.target.name }}.zst artifacts
- name: Upload artifact
- name: Upload artifacts
uses: actions/[email protected]
with:
name: artifacts
path: artifacts
retention-days: 1

release:
name: Release
Expand Down Expand Up @@ -99,14 +100,3 @@ jobs:
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish
run: .maintain/release.sh

clean-artifacts:
name: Clean artifacts
if: always()
needs: [release]
steps:
- name: Clean artifacts
uses: geekyeggo/delete-artifact@v2
with:
name: artifacts
runs-on: ubuntu-latest
16 changes: 3 additions & 13 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@ jobs:
run: |
mv target/${{ matrix.target.name }}/ci-release/<NAME>${{ matrix.target.extension }} .
zstd --ultra -22 -o <NAME>-${{ matrix.target.name }}.zst <NAME>${{ matrix.target.extension }}
- name: Collect artifact
- name: Collect artifacts
run: |
mkdir -p artifacts
mv <NAME>-${{ matrix.target.name }}.zst artifacts
- name: Upload artifact
- name: Upload artifacts
uses: actions/[email protected]
with:
name: artifacts
path: artifacts
retention-days: 1

staging:
name: Staging
Expand Down Expand Up @@ -97,14 +98,3 @@ jobs:
# run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
# - name: Publish
# run: .maintain/release.sh

clean-artifacts:
name: Clean artifacts
if: always()
needs: [staging]
steps:
- name: Clean artifacts
uses: geekyeggo/delete-artifact@v2
with:
name: artifacts
runs-on: ubuntu-latest
15 changes: 11 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
authors = ["Xavier Lau <[email protected]>"]
# build = "build.rs"
build = "build.rs"
description = "<DESCRIPTION>"
edition = "2021"
homepage = "https://hack.ink/<NAME>"
Expand All @@ -18,6 +18,13 @@ inherits = "dev"
inherits = "release"
lto = true

# [build-dependencies]
# # crates.io
# vergen = { version = "8.2", features = ["build", "cargo", "git", "gitcl"] }
[build-dependencies]
# crates.io
vergen = { version = "8.2", features = ["build", "cargo", "git", "gitcl"] }

[dependencies]
# crates.io
anyhow = { version = "1.0" }
color-eyre = { version = "0.6" }
tracing = { version = "0.1" }
tracing-subscriber = { version = "0.3" }
Empty file removed src/lib.rs
Empty file.
9 changes: 9 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// crates.io
use anyhow::Result;

fn main() -> Result<()> {
color_eyre::install().unwrap();
tracing_subscriber::fmt::init();

Ok(())
}

0 comments on commit 5a62859

Please sign in to comment.