Skip to content

Commit

Permalink
ci updates
Browse files Browse the repository at this point in the history
Signed-off-by: Ji Bin <[email protected]>
  • Loading branch information
Ji Bin committed Jan 17, 2024
1 parent 98741ac commit 8d63f14
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ RUN . /tmp/env && \
fi ; \
if id $DEV_USER 2>/dev/null 1>/dev/null ; then \
echo user $DEV_USER already exist ; \
exit 1 ; \
elif id $DEV_UID 2>/dev/null 1>/dev/null ; then \
echo user $DEV_UID already exist ; \
exit 1 ; \
else \
useradd -g $DEV_GID -u $DEV_UID -m -d $DEV_HOME -s /bin/bash $DEV_USER ; \
fi && \
echo "${DEV_USER} ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/user
if [ $DEV_UID -ne 0 ] ; then \
echo "${DEV_USER} ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/user ; \
fi
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
}
},
"mounts": [
"source=${localWorkspaceFolder}/.conan,target=/home/${localEnv:USER}/.conan,type=bind,consistency=cached"
"source=${localWorkspaceFolder}/.conan,target=/home/${localEnv:USER}/.conan,type=bind,consistency=cached",
"source=${localWorkspaceFolder}/.gitconfig,target=/home/${localEnv:USER}/.gitconfig,type=bind,consistency=cached",
"source=${localWorkspaceFolder}/.ssh,target=/home/${localEnv:USER}/.ssh,type=bind,consistency=cached"
]
}
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,13 @@ jobs:
path: dist/*.whl
retention-days: 5
build_macos:
strategy:
matrix:
include:
- os: macos-12
- os: macos-13-arm64
name: Build Wheel - macOS
runs-on: macos-11
runs-on: ${{ matrix.os }}
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
CCACHE_COMPILERCHECK: content
Expand Down

0 comments on commit 8d63f14

Please sign in to comment.