From a903e71843c8f4822a704c733090c12ae7d46dd7 Mon Sep 17 00:00:00 2001 From: andreroesti Date: Thu, 31 Oct 2024 14:14:35 -0700 Subject: [PATCH] add github action --- .github/workflows/test.yaml | 38 +++++++++++++++++++++++++++++++++++++ ci/run.sh | 8 ++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/test.yaml create mode 100644 ci/run.sh diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..8a0d9b8 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,38 @@ +name: Build and Test libc++ +on: + push: + schedule: + # Run nightly at 08:00 UTC (aka 00:00 Pacific, aka 03:00 Eastern) + - cron: '0 8 * * *' + +permissions: + contents: read # Default everything to read-only + +env: + + +jobs: + job1: + runs-on: ubuntu-latest + strategy: + #fail-fast: false + #matrix: + # config: [ + # 'generic-cxx03', + # 'generic-cxx26', + # 'generic-modules' + # ] + # cc: [ 'clang-19' ] + # cxx: [ 'clang++-19' ] + # include: + # - config: 'generic-gcc' + # cc: 'gcc-14' + # cxx: 'g++-14' + steps: + - uses: actions/checkout@v4 + - name: checkout and build + run: ./ci/run.sh + #libcxx/utils/ci/run-buildbot ${{ matrix.config }} + #env: + # CC: ${{ matrix.cc }} + # CXX: ${{ matrix.cxx }} \ No newline at end of file diff --git a/ci/run.sh b/ci/run.sh new file mode 100644 index 0000000..0106540 --- /dev/null +++ b/ci/run.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +echo "Running ./docker/setup-llvm.sh" +sudo ./docker/setup-llvm.sh +echo "Running ./docker/setup-deps.sh" +sudo ./docker/setup-deps.sh +echo "Running ./docker/setup-build.sh" +sudo ./docker/setup-build.sh