Skip to content

add gcc

add gcc #266

Workflow file for this run

#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
name: Unite Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
ubuntu-build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: gcc-10
sudo apt install gcc-11 g++-11

Check failure on line 38 in .github/workflows/ut.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ut.yml

Invalid workflow file

You have an error in your yaml syntax on line 38
#sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10
#sudo update-alternatives --set gcc /usr/bin/gcc-10
- name: Mount bazel cache
uses: actions/cache@v3
with:
path: "/home/runner/.cache/bazel"
key: bazel
- name: build
run: bazel test ...