Skip to content

Commit

Permalink
fix(release): make target configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
zshipko committed Jul 28, 2023
1 parent cf20de5 commit 3676f12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ jobs:
name: 'OCaml/Opam cache'
uses: actions/cache@v3
with:
key: 'wasmstore-opam-${{ matrix.ocaml-compiler }}-${{ matrix.os }}'
key: 'wasmstore-opam-${{ matrix.ocaml-compiler }}-${{ matrix.target }}-${{ matrix.os }}'
path: ~/.opam
- id: wasmstore-dune-cache
name: 'OCaml/Dune cache'
uses: actions/cache@v3
with:
key: wasmstore-dune-${{ matrix.ocaml-compiler }}-${{ matrix.os }}-${{ hashFiles('src/**') }}-${{ hashFiles('dune-project') }}
key: wasmstore-dune-${{ matrix.ocaml-compiler }}-${{ matrix.target }}-${{ matrix.os }}-${{ hashFiles('src/**') }}-${{ hashFiles('dune-project') }}
path: _build
- name: 'Use OCaml ${{ matrix.ocaml-compiler }}'
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: '${{ matrix.ocaml-compiler }}'
- run: opam install . --deps-only -y
- name: 'Make release'
run: opam exec -- make release
run: opam exec -- make release TARGET=${{ matrix.target }}
- name: Upload Artifact to Release
uses: softprops/action-gh-release@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
PREFIX?=/usr/local
VERSION=0.2
UNAME_M:=$(shell uname -m)
TARGET?=$(shell uname -m)
UNAME_S:=$(shell uname -s | tr '[:upper:]' '[:lower:]')
ifeq ($(UNAME_S),darwin)
UNAME_S=macos
endif
RELEASE_DIR=wasmstore-$(UNAME_M)-$(UNAME_S)-$(VERSION)
RELEASE_DIR=wasmstore-$(TARGET)-$(UNAME_S)-$(VERSION)

build:
dune build
Expand Down

0 comments on commit 3676f12

Please sign in to comment.