Skip to content

Commit

Permalink
Add autobuild action
Browse files Browse the repository at this point in the history
  • Loading branch information
javster101 committed Dec 1, 2023
1 parent 49011eb commit 94be52e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: automarathon-build
on:
push:
tags:
- 'v*'

jobs:
publish-archives:
name: Publish archives
strategy:
matrix:
os: [windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- name: Build project
run: cargo build --release
- name: Release-Windows
if: contains(matrix.os, 'windows')
uses: softprops/action-gh-release@v1
with:
files: |
./target/release/automarathon.exe
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "auto_marathon"
name = "automarathon"
version = "0.1.0"
edition = "2021"

Expand Down
11 changes: 2 additions & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,20 +204,13 @@ async fn read_terminal(tx: UnboundedSender<CommandMessage>) -> Result<(), Error>

#[tokio::main]
async fn main() -> Result<(), Error> {
let args = Args {
command: RunType::Run {
save_file: PathBuf::from("save.json"),
layout_file: PathBuf::from("layouts.json"),
settings_file: PathBuf::from("settings.json"),
project_file: PathBuf::from("proj.json"),
},
}; //Args::parse();
let args = Args::parse();

env_logger::builder()
.filter(Some("tracing::span"), log::LevelFilter::Warn)
.filter(Some("serenity"), log::LevelFilter::Warn)
.filter(Some("hyper"), log::LevelFilter::Warn)
.filter_level(log::LevelFilter::Debug)
.filter_level(log::LevelFilter::Info)
.init();

log::info!("Launching AutoMarathon {} on {}", AUTOMARATHON_VER, consts::OS);
Expand Down

0 comments on commit 94be52e

Please sign in to comment.