Skip to content

Commit

Permalink
Manually install gcc-13
Browse files Browse the repository at this point in the history
  • Loading branch information
vabold committed May 19, 2024
1 parent 46fe569 commit edd8d3b
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push, pull_request_target]

jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
Expand All @@ -15,18 +16,19 @@ jobs:
uses: actions/checkout@v3
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- name: Install ninja
run: sudo apt install ninja-build
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Configure G++ version
- name: Install packages
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
sudo apt-get install -y ninja-build gcc-13 g++-13
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 10
sudo update-alternatives --set gcc "/usr/bin/gcc-13"
sudo update-alternatives --set g++ "/usr/bin/g++-13"
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Configure ninja
run: ./configure.py
- name: Compile
Expand Down Expand Up @@ -70,6 +72,11 @@ jobs:
run: curl -L -o Runtime.tar.gz ${{ secrets.RUNTIME_DEPENDENCIES }}
- name: Extract dependencies
run: tar -xzf Runtime.tar.gz -C out
- name: Install packages
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
sudo apt-get install -y libstdc++6
- name: Run Kinoko
run: cd out && chmod u+x ./kinoko && ./kinoko -s testCases.bin
- name: Upload output
Expand Down

0 comments on commit edd8d3b

Please sign in to comment.