Skip to content

Commit

Permalink
Add archlinux to CI (#1582)
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 authored May 31, 2021
1 parent c62c041 commit 5e128ee
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 17 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/api_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
push:
branches:
- "**"
pull_request:
branches:
- "**"

jobs:
deploy:
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/ci_archlinux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# https://help.github.com/en/articles/workflow-syntax-for-github-actions

name: CI Arch Linux

on:
push:
branches:
- "**"
schedule:
# Run every day at 02:00
- cron: "0 2 * * 0-6"

jobs:
archlinux:
name: Arch Linux
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
os: [archlinux]
platform: [linux/amd64]
build_type: [Release]
codecov: [OFF]
env:
# Hosted on: https://hub.docker.com/repository/docker/dartsim/dart-dev
DART_DEV_IMAGE: dartsim/dart-dev
DOCKER_TAG: ${{ matrix.os }}-v7.0
PLATFORM: ${{ matrix.platform }}
COMPILER: gcc
BUILD_TYPE: ${{ matrix.build_type }}
BUILD_DARTPY: "${{ matrix.build_type == 'Debug' && 'OFF' || 'ON' }}"
CODECOV: ${{ matrix.codecov }}
steps:
# https://github.com/marketplace/actions/docker-setup-qemu
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Checkout
uses: actions/checkout@v2
- name: Pull dev container
run: docker pull $DART_DEV_IMAGE:$DOCKER_TAG
- name: Build
run: |
if [ "$CODECOV" = "ON" ]; then
ci_env=`bash <(curl -s https://codecov.io/env)`
fi
docker run \
$ci_env -e CI=true \
--platform $PLATFORM \
--volume $GITHUB_WORKSPACE:$GITHUB_WORKSPACE \
--env-file ./.ci/docker/env.list \
$DART_DEV_IMAGE:$DOCKER_TAG \
/bin/sh -c "cd $GITHUB_WORKSPACE && ./.ci/build.sh"
3 changes: 0 additions & 3 deletions .github/workflows/ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
schedule:
# Run every day at 02:00
- cron: "0 2 * * 0-6"
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/ci_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
schedule:
# Run every day at 02:00
- cron: "0 2 * * 0-6"

jobs:
# Linux distros on multiple architectures
ubuntu:
name: Ubuntu
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -45,7 +41,7 @@ jobs:
env:
# Hosted on: https://hub.docker.com/repository/docker/dartsim/dart-dev
DART_DEV_IMAGE: dartsim/dart-dev
DOCKER_TAG: ${{ matrix.os }}-v6.10
DOCKER_TAG: ${{ matrix.os }}-v7.0
PLATFORM: ${{ matrix.platform }}
COMPILER: gcc
BUILD_TYPE: ${{ matrix.build_type }}
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
schedule:
# Run every day at 02:00
- cron: "0 2 * * 0-6"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| Item | Status |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| Build Status | [![CI Ubuntu](https://github.com/dartsim/dart/actions/workflows/ci_ubuntu.yml/badge.svg)](https://github.com/dartsim/dart/actions/workflows/ci_ubuntu.yml) [![CI macOS](https://github.com/dartsim/dart/actions/workflows/ci_macos.yml/badge.svg)](https://github.com/dartsim/dart/actions/workflows/ci_macos.yml) [![CI Windows](https://github.com/dartsim/dart/actions/workflows/ci_windows.yml/badge.svg)](https://github.com/dartsim/dart/actions/workflows/ci_windows.yml) |
| Build Status | [![CI Ubuntu](https://github.com/dartsim/dart/actions/workflows/ci_ubuntu.yml/badge.svg)](https://github.com/dartsim/dart/actions/workflows/ci_ubuntu.yml) [![CI Arch Linux](https://github.com/dartsim/dart/actions/workflows/ci_archlinux.yml/badge.svg)](https://github.com/dartsim/dart/actions/workflows/ci_archlinux.yml) [![CI macOS](https://github.com/dartsim/dart/actions/workflows/ci_macos.yml/badge.svg)](https://github.com/dartsim/dart/actions/workflows/ci_macos.yml) [![CI Windows](https://github.com/dartsim/dart/actions/workflows/ci_windows.yml/badge.svg)](https://github.com/dartsim/dart/actions/workflows/ci_windows.yml) |
| API Documentation | [![API Documentation](https://github.com/dartsim/dart/actions/workflows/api_doc.yml/badge.svg)](https://github.com/dartsim/dart/actions/workflows/api_doc.yml) |
| Coverage | [![codecov](https://codecov.io/gh/dartsim/dart/branch/main/graph/badge.svg)](https://codecov.io/gh/dartsim/dart) |
| Static Analysis | [![Codacy Badge](https://app.codacy.com/project/badge/Grade/2d95a9b951be4b73a71097670ec351e8)](https://www.codacy.com/gh/dartsim/dart/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=dartsim/dart&amp;utm_campaign=Badge_Grade) |
Expand Down
4 changes: 2 additions & 2 deletions dart/dynamics/detail/DegreeOfFreedomPtr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class TemplateDegreeOfFreedomPtr
TemplateBodyNodePtr<BodyNodeT> mBodyNodePtr;

/// Local index of this DegreeOfFreedom within its Joint
std::size_t mIndex;
std::size_t mIndex = 0;
};

/// TemplateWeakDegreeOfFreedomPtr is a templated class that enables users to
Expand Down Expand Up @@ -331,7 +331,7 @@ class TemplateWeakDegreeOfFreedomPtr
TemplateWeakBodyNodePtr<BodyNodeT> mWeakBodyNode;

/// Local index of this DegreeOfFreedom within its Joint
std::size_t mIndex;
std::size_t mIndex = 0;
};

} // namespace dynamics
Expand Down

0 comments on commit 5e128ee

Please sign in to comment.