Skip to content

Commit

Permalink
rewrite main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Jan 4, 2024
1 parent 07fe3ba commit 3ddd006
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,47 @@ on: [push]
jobs:
build:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# - run: go test -v ./bls
- run: git submodule update --init --recursive
- name: build on linux
if: runner.os == 'Linux'
run: |
sudo apt install nasm
make clean
make CXX=clang++
go test -v ./bls
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- run: git submodule update --init --recursive
- name: build on mac
if: runner.os == 'macOS'
run: |
brew install nasm
make clean
make
go test -v ./bls
- name: build on windows
if: runner.os == 'windows'
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Cache nasm.exe
uses: actions/cache@v2
with:
path: nasm.exe
key: ${{ runner.os }}-nasm
- name: Download nasm.exe
uses: actions/download-artifact@v2
with:
name: nasm.exe
- name: Add nasm.exe to PATH
uses: actions/add-path@v1
with:
path: nasm.exe
- name: exec on windows
run: |
winget insatll nasm
git submodule update --init --recursive
make clean
make
go test -v ./bls

0 comments on commit 3ddd006

Please sign in to comment.