Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
AsherGlick committed Sep 30, 2023
1 parent b68be58 commit da0df70
Showing 1 changed file with 98 additions and 34 deletions.
132 changes: 98 additions & 34 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,61 +26,97 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Build-Linux:
Build-XMLConverter-Linux:
# The type of runner that the job will run on
runs-on: ubuntu-20.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

- name: Create the Output Directory
run: mkdir -v -p output

# `clang-9` must be installed here because of a weird unlisted dependency
# on some sort of file that clang-9 installs. Without it iwyu would
# complain about missing files and error out.
- name: Install include-what-you-use
run: |
sudo apt-get install iwyu
sudo apt-get install clang-9
# IWYU is disabled for now due to noise. It will be re-enabled at a later date
# # `clang-9` must be installed here because of a weird unlisted dependency
# # on some sort of file that clang-9 installs. Without it iwyu would
# # complain about missing files and error out.
# - name: Install include-what-you-use
# run: |
# sudo apt-get install iwyu
# sudo apt-get install clang-9

- name: Install protoc
run: sudo apt-get install protobuf-compiler

- name: Install gtest
run: sudo apt-get install libgtest-dev

- name: Install cpplint
run: |
pip3 install cpplint
- name: Install xml_converter/generators Dependencies
run: |
cd xml_converter/generators
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
- name: Install protoc
run: sudo apt-get install protobuf-compiler

- name: Install gtest
run: sudo apt-get install libgtest-dev

- name: Build xml_converter
run: |
cd xml_converter
mkdir -v -p build
cd build
cmake ..
make
mv xml_converter ../../output/
cp compile_commands.json ../compile_commands.json
- name: Validate xml_converter
run: |
cd xml_converter
cp build/compile_commands.json ./compile_commands.json
./presubmit.sh
- name: Upload created file
uses: actions/upload-artifact@v2
with:
name: xml_converter
path: xml_converter/build/xml_converter
if-no-files-found: error

Build-BurritoLink-Linux:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Create the Output Directory
run: mkdir -v -p output

- name: Install mingw
run: sudo apt-get install gcc-mingw-w64

- name: Build Burrito Link
run: |
cd burrito_link
make
- name: Upload created file
uses: actions/upload-artifact@v2
with:
name: burrito_link.exe
path: burrito_link/burrito_link.exe
if-no-files-found: error

Build-BurritoUI-Linux:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Create the Output Directory
run: mkdir -v -p output

# - name: Cache Godot
# id: cache-godot
Expand Down Expand Up @@ -116,10 +152,6 @@ jobs:
unzip Godot_v${GODOT_VERSION}-stable_export_templates.tpz
mv templates/* ~/.local/share/godot/templates/${GODOT_VERSION}.stable/
ls ~/.local/share/godot/templates/${GODOT_VERSION}.stable/
- name: Install mingw
run: sudo apt-get install gcc-mingw-w64

- name: Build X11_FG
Expand All @@ -133,14 +165,6 @@ jobs:
cd taco_parser
cargo build --release
- name: Build Burrito Link
run: |
cd burrito_link
make
mv burrito_link.exe ../output
- name: Build Burrito
run: |
mkdir -v -p build
Expand All @@ -150,6 +174,48 @@ jobs:
mv build/libburrito_fg.so output/
mv build/libgw2_taco_parser.so output/
- uses: actions/upload-artifact@v2
with:
# Artifact name
name: "Burrito_UI" # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: "output/*"
# The desired behavior if no files are found using the provided path.
if-no-files-found: error

Package-Burrito-Linux:
runs-on: ubuntu-20.04
needs:
- Build-XMLConverter-Linux
- Build-BurritoLink-Linux
- Build-BurritoUI-Linux
steps:
- name: Download Burrito UI
uses: actions/download-artifact@v2
with:
name: Burrito_UI

- name: List Files
run: ls -al

- name: Download XML Converter
uses: actions/download-artifact@v2
with:
name: xml_converter

- name: List Files
run: ls -al

- name: Download XML Converter
uses: actions/download-artifact@v2
with:
name: burrito_link.exe

- name: List Files
run: ls -al

- name: Move Burrito Link
run: mv burrito_link/burrito_link.exe output/

- uses: actions/[email protected]
with:
Expand All @@ -159,5 +225,3 @@ jobs:
path: "output/*"
# The desired behavior if no files are found using the provided path.
if-no-files-found: error
# Duration after which artifact will expire in days. 0 means using default retention.
retention-days: 7

0 comments on commit da0df70

Please sign in to comment.