Skip to content

Commit

Permalink
Add wgsim.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
kojix2 committed Apr 30, 2024
1 parent e352ea0 commit 15d403a
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/wgsim-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: wgsim (macos) # edit

on:
push:
branches:
- main
paths:
- "Formula/wgsim.rb" # edit
- ".github/workflows/wgsim-macos.yml" # edit
schedule:
- cron: "51 3 * * 6" # Runs at 03:51, only on Saturday
workflow_dispatch:

jobs:
test_installation:
name: macos
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install (macos)
run: |
brew install kojix2/brew/wgsim # edit
wgsim --version # edit
28 changes: 28 additions & 0 deletions .github/workflows/wgsim-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: wgsim (ubuntu) # edit

on:
push:
branches:
- main
paths:
- "Formula/wgsim.rb" # edit
- ".github/workflows/wgsim-ubuntu.yml" # edit
schedule:
- cron: "51 3 * * 6" # Runs at 03:51, only on Saturday
workflow_dispatch:

jobs:
test_installation:
name: ubuntu
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew tap kojix2/brew
brew install kojix2/brew/wgsim # edit
wgsim --version # edit
16 changes: 16 additions & 0 deletions Formula/wgsim.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class Wgsim < Formula
version "v0.0.2.alpha"
desc "Reimplement wgsim in Crystal and add extra features."
homepage "https://github.com/kojix2/wgsim"
url "https://github.com/kojix2/wgsim.cr/archive/refs/tags/v0.0.2.alpha.tar.gz"
sha256 "f85601b276700d8b3c3d5208b2cb53e4f486338ad119874e411d13a8ee09381e"
license "MIT"

depends_on "crystal"

def install
system "shards build --release"
# system "shards build --release -Dpreview_mt"
bin.install "bin/wgsim"
end
end

0 comments on commit 15d403a

Please sign in to comment.