Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Jul 16, 2023
1 parent 3a0330b commit b2b069d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,25 @@ jobs:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v1
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
- run: make install-deps
- name: gcc compile
run: make all
- name: zig compile
run: zig build -Dquick=true
- name: Test
- name: Test core
if: matrix.os == 'ubuntu-latest'
run: |
zig build -Dcpu=baseline --verbose
TEST_BINARY=./zig-out/bin/test-core
valgrind --leak-check=full --tool=memcheck \
--show-leak-kinds=all --error-exitcode=1 ${TEST_BINARY}
- name: Test discussion
if: matrix.os == 'ubuntu-latest'
run: |
TEST_BINARY=./zig-out/bin/test-discussion
valgrind --leak-check=full --tool=memcheck \
--show-leak-kinds=all --error-exitcode=1 ${TEST_BINARY}
5 changes: 4 additions & 1 deletion .github/workflows/lisp-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ jobs:
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
- uses: actions/checkout@v3
- name: Install dependencies
run: |
make install-deps
- name: Compile dyn
run: |
OMG_VERBOSE=1 OMG_TEST=1 make clean emacs-dyn
OMG_VERBOSE=1 OMG_TEST=1 make clean all
- name: Run test
working-directory: emacs
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Build Emacs dynamic module
run: |
which brew && export PKG_CONFIG_PATH="$(brew --prefix)/opt/sqlite/lib/pkgconfig"
make emacs-dyn
make all
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
Expand Down

0 comments on commit b2b069d

Please sign in to comment.