Skip to content

Commit

Permalink
update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Jan 4, 2024
1 parent 1dcede9 commit cdf2492
Showing 1 changed file with 38 additions and 14 deletions.
52 changes: 38 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,50 @@ name: test
on: [push]

jobs:
build:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
Run-on-ubuntu:
name: Run on ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git submodule update --init --recursive
- name: build on linux
if: runner.os == 'Linux'
run: |
- uses: actions/checkout@v4
- run: |
git submodule update --init --recursive
sudo apt install nasm
make clean
make CXX=clang++
go test -v ./bls
- name: build on mac
if: runner.os == 'macOS'
run: |
Run-on-macos:
name: Run on macos
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- run: |
git submodule update --init --recursive
brew install nasm
make clean
make
go test -v ./bls
Run-on-windows:
name: Run on windows
runs-on: windows-latest
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
#msystem: UCRT64
update: true
platform-check-severity: warn
install: >-
make
python3
mingw-w64-x86_64-gcc
mingw-w64-x86_64-go
- uses: msys2/setup-msys2@v2
# - uses: actions/checkout@v4
- run: |
git clone -b release https://github.com/herumi/bls-go-binary
cd bls-go-binary
#git submodule update --init --recursive
#make MCL_STATIC_CODE=0
go test -v ./bls

0 comments on commit cdf2492

Please sign in to comment.