Skip to content

Commit

Permalink
rename cmds -> cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Feb 22, 2024
1 parent 7744b19 commit b815553
Show file tree
Hide file tree
Showing 16 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
name: Build wasm
run: |
mkdir output
/usr/bin/env bash ./cmds/mcla_wasm/build.sh -o ./output/mcla.wasm -ldflags="-X 'main.version=hash-${GITHUB_SHA}'"
cp ./cmds/mcla_wasm/wasm_exec.js ./output/wasm_exec.js
/usr/bin/env bash ./cmd/mcla_wasm/build.sh -o ./output/mcla.wasm -ldflags="-X 'main.version=hash-${GITHUB_SHA}'"
cp ./cmd/mcla_wasm/wasm_exec.js ./output/wasm_exec.js
-
name: Upload wasm output to artifact
uses: actions/upload-artifact@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: go test -v .
-
name: Build
run: /usr/bin/env bash ./cmds/mcla/build.sh -ldflags="-X 'main.version=${GITHUB_REF#refs/*/}'"
run: /usr/bin/env bash ./cmd/mcla/build.sh -ldflags="-X 'main.version=${GITHUB_REF#refs/*/}'"
-
name: Upload Release Assets
uses: zyxkad/upload-release-asset-dir@v1
Expand All @@ -68,8 +68,8 @@ jobs:
name: Build wasm
run: |
mkdir output
/usr/bin/env bash ./cmds/mcla_wasm/build.sh -o ./output/mcla.wasm -opt=z -no-debug -ldflags="-X 'main.version=${GITHUB_REF#refs/*/}'"
cp ./cmds/mcla_wasm/wasm_exec.js ./output/wasm_exec.js
/usr/bin/env bash ./cmd/mcla_wasm/build.sh -o ./output/mcla.wasm -opt=z -no-debug -ldflags="-X 'main.version=${GITHUB_REF#refs/*/}'"
cp ./cmd/mcla_wasm/wasm_exec.js ./output/wasm_exec.js
-
name: Upload wasm output to artifact
uses: actions/upload-artifact@v2
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion cmds/mcla_wasm/main_test.go → cmd/mcla_wasm/main_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// this file just for keeping `tinygo test` works
package main_test

import _ "github.com/GlobeMC/mcla/cmds/mcla_wasm"
import _ "github.com/GlobeMC/mcla/cmd/mcla_wasm"
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b815553

Please sign in to comment.