Skip to content

Commit

Permalink
U: Add build energy-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
sxmxta committed Sep 29, 2024
1 parent e789181 commit f5acd61
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/build-energy-cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: build-energy-cli

on:
workflow_dispatch:

jobs:

build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]

steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.20'

- name: Build CLI
run: |
cd ./cmd/energy/md5
go install
cd ../
.\build.bat
7z a energy-windows-32.zip energy-windows-32.exe
7z a energy-windows-64.zip energy-windows-64.exe
7z a energy-darwin-64.zip energy-darwin-64
7z a energy-darwinarm-64.zip energy-darwinarm-64
7z a energy-linux-64.zip energy-linux-64
7z a energy-linuxarm-64.zip energy-linuxarm-64
dir
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go
name: build-test

on:
push:
Expand Down

0 comments on commit f5acd61

Please sign in to comment.