From 6bea615cdfaf67940f391079009a926754a46111 Mon Sep 17 00:00:00 2001 From: TANG ZHIXIONG <zhixiong.tang@momenta.ai> Date: Fri, 24 Nov 2023 23:24:34 +0800 Subject: [PATCH] fix --- .github/workflows/enscripten.yaml | 60 ----------------------------- .github/workflows/main.yml | 64 ------------------------------- .github/workflows/pip.yml | 2 +- .github/workflows/wheels.yml | 1 + 4 files changed, 2 insertions(+), 125 deletions(-) delete mode 100644 .github/workflows/enscripten.yaml delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/enscripten.yaml b/.github/workflows/enscripten.yaml deleted file mode 100644 index d8e7b4b..0000000 --- a/.github/workflows/enscripten.yaml +++ /dev/null @@ -1,60 +0,0 @@ -name: WASM - -on: - workflow_dispatch: - pull_request: - branches: - - master - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-wasm-emscripten: - name: Pyodide - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v4 - with: - submodules: true - fetch-depth: 0 - - - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - - name: Install pyodide-build - run: pip install pyodide-build==0.23.4 - - - name: Compute emsdk version - id: compute-emsdk-version - run: | - pyodide xbuildenv install --download - EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) - echo "emsdk-version=$EMSCRIPTEN_VERSION" >> $GITHUB_OUTPUT - - - uses: mymindstorm/setup-emsdk@v12 - with: - version: ${{ steps.compute-emsdk-version.outputs.emsdk-version }} - actions-cache-folder: emsdk-cache - - # A future version of pyodide may switch to -fwasm-exceptions - - name: Build - run: CFLAGS=-fexceptions LDFLAGS=-fexceptions pyodide build - - - uses: actions/upload-artifact@v3 - with: - path: dist/*.whl - - - uses: actions/setup-node@v4 - with: - node-version: 18 - - - name: Set up Pyodide virtual environment - run: | - pyodide venv .venv-pyodide - .venv-pyodide/bin/pip install $(echo -n dist/*.whl)[test] - - - name: Test - run: .venv-pyodide/bin/pytest diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index ffebd89..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: CI - -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the main branch -on: - push: - branches: [ '*' ] - pull_request: - branches: [ main ] - workflow_dispatch: - inputs: - debug_enabled: - description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' - required: false - default: false - -# 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: - # The type of runner that the job will run on - runs-on: ubuntu-22.04 - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v4 - - - name: Install bazelisk - run: | - mkdir -p "${GITHUB_WORKSPACE}/bin/" - wget https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 -O "${GITHUB_WORKSPACE}/bin/bazel" - chmod +x "${GITHUB_WORKSPACE}/bin/bazel" - - - name: Install clang-16 - run: | - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - - sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main" - sudo apt-get update - sudo apt-get install -y clang-16 libc++-16-dev libc++abi-16-dev - echo "/usr/lib/llvm-16/bin" >> $GITHUB_PATH - - # Enable tmate debugging of manually-triggered workflows if the input option was provided - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} - with: - limit-access-to-actor: true - - - name: Build (C++17) - run: | - "${GITHUB_WORKSPACE}/bin/bazel" build --config=clang //... - - - name: Test (C++17) - run: | - "${GITHUB_WORKSPACE}/bin/bazel" test --config=clang //... - - - name: Build (C++20) - run: | - "${GITHUB_WORKSPACE}/bin/bazel" build --config=clang --config=cpp20 //... - - - name: Test (C++20) - run: | - "${GITHUB_WORKSPACE}/bin/bazel" test --config=clang --config=cpp20 //... diff --git a/.github/workflows/pip.yml b/.github/workflows/pip.yml index 8c0c680..924859f 100644 --- a/.github/workflows/pip.yml +++ b/.github/workflows/pip.yml @@ -15,7 +15,7 @@ jobs: fail-fast: false matrix: platform: [windows-latest, macos-latest, ubuntu-latest] - python-version: ["3.7", "3.11", "pypy-3.8"] + python-version: ["3.7", "3.11"] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 5069964..9052523 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -55,6 +55,7 @@ jobs: CIBW_ARCHS_MACOS: universal2 CIBW_ARCHS_WINDOWS: auto ARM64 CIBW_TEST_SKIP: "*macosx* *win* *aarch64 p312-*" + CIBW_ENVIRONMENT: "PIP_ONLY_BINARY=:all:" - name: Verify clean directory run: git diff --exit-code