Skip to content

Commit

Permalink
fix: github actions failed
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyAdapter committed Nov 20, 2024
1 parent c8c455b commit 4c435ea
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/conda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: install-conda-build
run: conda install conda-build=3.20.4 anaconda-client
- name: conda-config
Expand All @@ -45,14 +45,12 @@ jobs:
ANACONDA_UPLOAD_TOKEN: ${{ secrets.ANACONDA_UPLOAD_TOKEN }}
if: ${{ env.ANACONDA_UPLOAD_TOKEN }}
run: /usr/share/miniconda/bin/anaconda -t $ANACONDA_UPLOAD_TOKEN upload -u nusdbsystem -l main /usr/share/miniconda/conda-bld/linux-64/singa-*.tar.bz2 --force
#


build-pytest-package-macos:
runs-on: macos-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: set permission
run: sudo chmod -R 777 /usr/local/miniconda
# && xcrun --show-sdk-path
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/macOS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.7"
python-version: "3.9"
- name: install-build-dependencies
run: |
brew install protobuf swig opencv glog lmdb numpy
Expand All @@ -46,7 +46,7 @@ jobs:
CMAKE_LIBRARY_PATH: /usr/local/opt/openblas/lib:$CMAKE_LIBRARY_PATH
DNNL_ROOT: /tmp/dnnl_mac_1.2.0_cpu_tbb/
- name: build
run: cd build && make
run: cd build && make -j
env:
CXXFLAGS: -I /Users/runner/hostedtoolcache/Python/3.7.8/x64/lib/python3.7/site-packages/numpy/core/include $CXXFLAGS
LD_LIBRARY_PATH: /usr/local/opt/openblas/lib:/tmp/dnnl_mac_1.2.0_cpu_tbb/lib:$LD_LIBRARY_PATH
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/rat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@ on:
# 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 "CheckLicence"
CheckLicence:
check-license:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# 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@v2
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'

# Runs a single command using the runners shell
- name: Licence check with Apache RAT
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,14 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: get-oneDNN
run: wget https://github.com/oneapi-src/oneDNN/releases/download/v1.1/dnnl_lnx_1.1.0_cpu_gomp.tgz -P /tmp/ && tar zxf /tmp/dnnl_lnx_1.1.0_cpu_gomp.tgz -C /tmp
- name: update APT sources
run: sudo apt-get update
- name: setup-sys-env
run: sudo apt-get install -y curl wget git cmake
- name: install-build-dependencies
Expand All @@ -57,10 +62,10 @@ jobs:
env:
DNNL_ROOT: /tmp/dnnl_lnx_1.1.0_cpu_gomp/
- name: build
run: cd build && make -j8
run: cd build && make -j
- name: C++ test
run: build/bin/test_singa
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v5
with:
flags: singa-cpp

0 comments on commit 4c435ea

Please sign in to comment.