Skip to content

Commit d300570

Browse files
committed
Run Tests on Mac and produce Mac binaries for releases
1 parent cf01a23 commit d300570

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ jobs:
8686
matrix:
8787
include:
8888
- os: ubuntu-latest
89-
# Ignoring Mac until we find a solution to: https://github.com/ethereum/fe/pull/106/checks?check_run_id=1322145918
90-
# - os: macOS-latest
89+
- os: macOS-latest
9190
steps:
9291
- uses: actions/checkout@v2
9392
- name: Cache Rust dependencies
@@ -141,7 +140,11 @@ jobs:
141140
needs: [lint, test, wasm-test]
142141
strategy:
143142
matrix:
144-
os: [ubuntu-latest]
143+
include:
144+
- os: ubuntu-latest
145+
BIN_FILE: fe_amd64
146+
- os: macOS-latest
147+
BIN_FILE: fe_mac
145148

146149
steps:
147150
- uses: actions/checkout@v2
@@ -151,18 +154,22 @@ jobs:
151154
sudo apt-get install -y libboost-all-dev
152155
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 50
153156
sudo update-alternatives --set g++ "/usr/bin/g++-8"
157+
- name: Install Mac System dependencies
158+
if: startsWith(matrix.os,'macOS')
159+
run: |
160+
brew install boost
154161
- name: Install latest nightly
155162
uses: actions-rs/toolchain@v1
156163
with:
157164
profile: minimal
158165
toolchain: nightly
159166
override: true
160167
- name: Build
161-
run: cargo build --all-features --release && strip target/release/fe && mv target/release/fe target/release/fe_amd64
168+
run: cargo build --all-features --release && strip target/release/fe && mv target/release/fe target/release/${{ matrix.BIN_FILE }}
162169
- name: Release
163170
uses: softprops/action-gh-release@v1
164171
with:
165-
files: target/release/fe_amd64
172+
files: target/release/${{ matrix.BIN_FILE }}
166173
prerelease: true
167174
env:
168175
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

newsfragments/178.internal.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Run CI tests on Mac and support creating Mac binaries for releases.

0 commit comments

Comments
 (0)