Update build.yml #34
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 | |
- name: Boostrap | |
run: | | |
export PATH="/usr/local/opt/bison/bin:$PATH" | |
./bootstrap.sh | |
- name: Configure | |
run: | | |
export PATH="/usr/local/opt/bison/bin:$PATH" | |
export CFLAGS="-Wno-deprecated-copy-with-user-provided-copy" | |
export CXXFLAGS="-Wno-deprecated-copy-with-user-provided-copy" | |
./configure | |
- name: Make | |
run: | | |
export PATH="/usr/local/opt/bison/bin:$PATH" | |
export CFLAGS="-Wno-deprecated-copy-with-user-provided-copy" | |
export CXXFLAGS="-Wno-deprecated-copy-with-user-provided-copy" | |
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 |