update environment variables #43
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push] | |
jobs: | |
Build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: brew install autoconf automake bison pkg-config boost libtool | |
- name: Update environment variables | |
run: | | |
echo "/opt/homebrew/opt/bison/bin" >> $GITHUB_PATH | |
export LDFLAGS="-L/opt/homebrew/opt/bison/lib" | |
export CFLAGS="-Wno-deprecated-copy-with-user-provided-copy" | |
export CXXFLAGS="-Wno-deprecated-copy-with-user-provided-copy" | |
- name: Boostrap | |
run: ./bootstrap.sh | |
- name: Configure | |
run: ./configure | |
- name: Make | |
run: | | |
cd ./compiler/cpp | |
make | |
- name: Add executable permission | |
run: chmod +x ./compiler/cpp/thrift | |
- name: 'Zip files' | |
run: zip -j ./thrift.zip ./compiler/cpp/thrift | |
- name: 'Upload Artifact' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: thrift.zip | |
path: ./thrift.zip |