Skip to content

Commit 65cd1ce

Browse files
committed
first update in workflow
1 parent 8b00838 commit 65cd1ce

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.github/workflows/main.yml

+20-8
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,28 +140,41 @@ 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
148151
- name: Install Linux dependencies
149152
if: startsWith(matrix.os,'ubuntu')
150153
run: |
154+
sudo apt-get update
155+
sudo apt-get upgrade -y
151156
sudo apt-get install -y libboost-all-dev
152-
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 50
153-
sudo update-alternatives --set g++ "/usr/bin/g++-8"
157+
sudo apt-get install g++ -y
158+
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 50
159+
sudo update-alternatives --set g++ "/usr/bin/g++-9"
160+
sudo apt-get install cmake -y
161+
sudo apt-get install -y libclang-dev
162+
- name: Install Mac System dependencies
163+
if: startsWith(matrix.os,'macOS')
164+
run: |
165+
brew install boost
154166
- name: Install latest nightly
155167
uses: actions-rs/toolchain@v1
156168
with:
157169
profile: minimal
158170
toolchain: nightly
159171
override: true
160172
- name: Build
161-
run: cargo build --all-features --release && strip target/release/fe && mv target/release/fe target/release/fe_amd64
173+
run: cargo build --all-features --release && strip target/release/fe && mv target/release/fe target/release/${{ matrix.BIN_FILE }}
162174
- name: Release
163175
uses: softprops/action-gh-release@v1
164176
with:
165-
files: target/release/fe_amd64
177+
files: target/release/${{ matrix.BIN_FILE }}
166178
prerelease: true
167179
env:
168-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
180+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)