Skip to content

Commit

Permalink
ci: let the workflow pick the right target
Browse files Browse the repository at this point in the history
  • Loading branch information
leostera committed Nov 22, 2020
1 parent 3c97dfd commit 6ad66b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,12 @@ jobs:
if: ${{ success() && startsWith(runner.os, 'Linux') }}
run: make fmt

- name: Create release archive
if: ${{ success() }}
- name: Create release archive (Windows)
if: ${{ success() && runner.os == 'Windows' }}
run: make release.win

- name: Create release archive (Unix)
if: ${{ success() && runner.os != 'Windows' }}
run: make release

- name: Upload LAM build artifact
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
LAM_EXE=lam

.PHONY: build
build: build.wasm build.web
cargo build
Expand All @@ -23,10 +25,14 @@ docs:
test:
cargo test

.PHONY: release.win
release.win: LAM_EXE=lam.exe
release.win: release

.PHONY: release
release: release.wasm release.web
cargo build --release
tar czf release.tar.gz -C ./target/release/ lam
tar czf release.tar.gz -C ./target/release/ $(LAM_EXE)

.PHONY: release.wasm
release.wasm:
Expand Down

0 comments on commit 6ad66b6

Please sign in to comment.