Skip to content

Commit

Permalink
Revert "Try GitHub large custom runners"
Browse files Browse the repository at this point in the history
This reverts commit f676c05.
  • Loading branch information
Fabien-Chouteau committed May 23, 2024
1 parent af62146 commit 868e850
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
gnat_gprbuild:
name: GNAT Linux and GPRbuild
runs-on: ubuntu-20.04-64cores
runs-on: ubuntu-20.04
steps:
- name: Checkout Project
uses: actions/checkout@v2
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
gnatcov:
name: GNATcov
needs: gnat_gprbuild
runs-on: ubuntu-20.04-64cores
runs-on: ubuntu-20.04
steps:
- name: Checkout Project
uses: actions/checkout@v2
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
target: ["arm-elf", "riscv64-elf", "avr-elf"]
name: GNAT ${{ matrix.target }}-linux
needs: gnat_gprbuild
runs-on: ubuntu-20.04-64cores
runs-on: ubuntu-20.04
steps:
- name: Checkout Project
uses: actions/checkout@v2
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
spark:
name: spark
needs: [why3, alt_ergo]
runs-on: ubuntu-20.04-64cores
runs-on: ubuntu-20.04
steps:
- name: Checkout Project
uses: actions/checkout@v2
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
gnat_gprbuild:
name: GNAT Windows and gprbuild
runs-on: windows-2019-64cores
runs-on: windows-2019
env:
CONFIG_SHELL: /bin/bash
defaults:
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
gnatcov:
name: GNATcov
needs: gnat_gprbuild
runs-on: windows-2019-64cores
runs-on: windows-2019
env:
CONFIG_SHELL: /bin/bash
defaults:
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
target: ["arm-elf", "riscv64-elf", "avr-elf"]
name: GNAT ${{ matrix.target }}-windows
needs: gnat_gprbuild
runs-on: windows-2019-64cores
runs-on: windows-2019
env:
CONFIG_SHELL: /bin/bash
defaults:
Expand Down Expand Up @@ -194,7 +194,7 @@ jobs:
matrix:
ocaml-compiler:
- 4.11.2
runs-on: windows-2019-64cores
runs-on: windows-2019
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -259,7 +259,7 @@ jobs:
spark:
name: spark
needs: [why3, alt_ergo]
runs-on: windows-2019-64cores
runs-on: windows-2019
env:
CONFIG_SHELL: /bin/bash
defaults:
Expand Down
15 changes: 10 additions & 5 deletions specs/gcc.anod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from e3.os.fs import unixpath, cd
from e3.os.fs import unixpath
from e3.fs import cp, mkdir, sync_tree
from e3.anod.helper import Configure, Make
from e3.anod.spec import Anod
Expand Down Expand Up @@ -94,6 +94,9 @@ class GCC(spec("gh-artifact")):
else:
deps.append(Anod.Dependency("base_gcc", host="build", target="host"))

if self.env.build.os.name != "darwin":
deps.append(Anod.Dependency("isl", host="build", target="host"))

if self.env.target.os.name != "darwin":
deps.append(Anod.Dependency("binutils", target="target"))

Expand Down Expand Up @@ -200,10 +203,6 @@ class GCC(spec("gh-artifact")):
"lib", "gcc", self.env.target.triplet, self.version
)

cd(self["SRC_DIR"])
self.shell(os.path.join(self['SRC_DIR'], 'contrib', 'download_prerequisites'))
cd(self["BUILD_DIR"])

if self.env.target.os.name == "windows":
# Deploy the mingw dependency in the ./mingw64 directory
self.deps["mingw"].merge(os.path.join(self["SRC_DIR"], "mingw64"))
Expand Down Expand Up @@ -252,6 +251,12 @@ class GCC(spec("gh-artifact")):
for a in self.configure_args():
configure.add(a)

for m in ("mpfr", "gmp", "mpc", "isl"):
if m in self.deps:
configure.add(
"--with-%s=%s" % (m, unixpath(self.deps[m]["INSTALL_DIR"]))
)

if self.env.host.os.name == "windows":
# https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=902c755930326cb4405672aa3ea13c35c653cbff
os.environ["CPPFLAGS"] = "-DCOM_NO_WINDOWS_H"
Expand Down

0 comments on commit 868e850

Please sign in to comment.