diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f58199..574b1e7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: - name: Install dependencies run: apk add --no-cache yarn yaml sqlite-static libarchive-dev libarchive-static acl-static expat-static zstd-static lz4-static bzip2-static - name: Build - run: make static + run: make static || make static - name: Linter run: make check - name: Run tests @@ -30,9 +30,9 @@ jobs: name: mango path: mango - name: build arm32v7 object file - run: make arm32v7 + run: make arm32v7 || make arm32v7 - name: build arm64v8 object file - run: make arm64v8 + run: make arm64v8 || make arm64v8 - name: Upload object files uses: actions/upload-artifact@v2 with: diff --git a/Makefile b/Makefile index 6612b35..d9485c5 100644 --- a/Makefile +++ b/Makefile @@ -12,10 +12,10 @@ setup: libs yarn gulp dev build: libs - crystal build src/mango.cr --release --progress + crystal build src/mango.cr --release --progress --error-trace static: uglify | libs - crystal build src/mango.cr --release --progress --static + crystal build src/mango.cr --release --progress --static --error-trace libs: shards install --production @@ -32,10 +32,10 @@ check: ./dev/linewidth.sh arm32v7: - crystal build src/mango.cr --release --progress --cross-compile --target='arm-linux-gnueabihf' -o mango-arm32v7 + crystal build src/mango.cr --release --progress --error-trace --cross-compile --target='arm-linux-gnueabihf' -o mango-arm32v7 arm64v8: - crystal build src/mango.cr --release --progress --cross-compile --target='aarch64-linux-gnu' -o mango-arm64v8 + crystal build src/mango.cr --release --progress --error-trace --cross-compile --target='aarch64-linux-gnu' -o mango-arm64v8 install: cp mango $(INSTALL_DIR)/mango