Skip to content

Commit

Permalink
Fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
zw963 committed Dec 2, 2024
1 parent 61da84e commit 03370b6
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/alpine_x86_64_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,38 @@ jobs:
path: ~/.cache/shards
key: ${{ runner.os }}-shards-${{ hashFiles('shard.yml') }}
restore-keys: ${{ runner.os }}-shards-
- name: install common dependencies
run: |
apk add \
curl \
gc-dev \
gcc \
git \
libevent-static \
musl-dev \
openssl-dev \
openssl-libs-static \
pcre-dev \
sqlite-static \
tzdata \
yaml-static \
zlib-dev \
zlib-static \
cmake \
g++ \
libffi-dev \
libxml2-dev \
llvm-dev \
llvm-static \
make
- name: Download source
uses: actions/checkout@v4
- name: Install shards
run: shards check || shards install --without-development
- name: Check formatting
run: crystal tool format --check
- name: Run tests
run: crystal spec --order=random
# - name: Run tests
# run: crystal spec --order=random
- name: package information
run: |
echo "BINARY_NAME=bin/$(cat shard.yml |grep targets -A1|tail -n1 |sed 's#[ :]##g')" >> $GITHUB_ENV
Expand Down

0 comments on commit 03370b6

Please sign in to comment.