Skip to content

Commit

Permalink
first update in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SatyamSB committed Jan 13, 2021
1 parent 8b00838 commit 65cd1ce
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ jobs:
matrix:
include:
- os: ubuntu-latest
# Ignoring Mac until we find a solution to: https://github.com/ethereum/fe/pull/106/checks?check_run_id=1322145918
# - os: macOS-latest
- os: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Cache Rust dependencies
Expand Down Expand Up @@ -141,28 +140,41 @@ jobs:
needs: [lint, test, wasm-test]
strategy:
matrix:
os: [ubuntu-latest]
include:
- os: ubuntu-latest
BIN_FILE: fe_amd64
- os: macOS-latest
BIN_FILE: fe_mac

steps:
- uses: actions/checkout@v2
- name: Install Linux dependencies
if: startsWith(matrix.os,'ubuntu')
run: |
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y libboost-all-dev
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 50
sudo update-alternatives --set g++ "/usr/bin/g++-8"
sudo apt-get install g++ -y
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 50
sudo update-alternatives --set g++ "/usr/bin/g++-9"
sudo apt-get install cmake -y
sudo apt-get install -y libclang-dev
- name: Install Mac System dependencies
if: startsWith(matrix.os,'macOS')
run: |
brew install boost
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Build
run: cargo build --all-features --release && strip target/release/fe && mv target/release/fe target/release/fe_amd64
run: cargo build --all-features --release && strip target/release/fe && mv target/release/fe target/release/${{ matrix.BIN_FILE }}
- name: Release
uses: softprops/action-gh-release@v1
with:
files: target/release/fe_amd64
files: target/release/${{ matrix.BIN_FILE }}
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 65cd1ce

Please sign in to comment.