DEV Community

Yuta Goto
Yuta Goto

Posted on

1 1

emojicodeのCircleCI Orbを作った

この記事は、雑談Slack Advent Calendar 2020 の6日目の記事です。
遅れての投稿です。

https://adventar.org/calendars/5337

先週はemojicodeをCircleCIで実行するやつについて書きました。

毎度毎度インストールコマンドを書くのも大変なのでOrbを作りました。

https://circleci.com/developer/ja/orbs/orb/yutagoto/emojicode

Orb Project Template

A starter template for orb projects. Build, test, and publish orbs automatically on CircleCI with Orb-Tools.

Additional READMEs are available in each directory.

Meta: This repository is open for contributions! Feel free to open a pull request with your changes. Due to the nature of this repository, it is not built on CircleCI. The Resources and How to Contribute sections relate to an orb created with this template, rather than the template itself.

Resources

CircleCI Orb Registry Page - The official registry page of this orb for all versions, executors, commands, and jobs described CircleCI Orb Docs - Docs for using and creating CircleCI Orbs.

How to Contribute

We welcome issues to and pull requests against this repository!

How to Publish

  • Create and push a branch with your new features.
  • When ready to publish a new production version, create a Pull Request from fore feature

基本的な使い方は書くだけで使えるはずです。(もしかしたらGCCも追加させる必要があるかもしれないですが。。)

# .circleci/config.yml
version: 2.1

orbs:
  emojicode: yutagoto/emojicode@1.0.0

executors:
  cpp:
    docker:
      - image: gcc:latest

jobs:
  run_emojicode:
    executor: cpp
    steps:
      - checkout
      - run: apt update && apt install -y sudo || true
      - emojicode/install
      - run:
          name: build emojicode
          command: emojicodec hello.emojic
      - run:
          name: run
          command: ./hello

workflows:
  version: 2
  build:
    jobs:
      - run_emojicode
Enter fullscreen mode Exit fullscreen mode

emojicodeで実装してCircleCIでチェックしたいときにお使いください。


GitHub リポジトリのREADMEなどはあとでちゃんと書きます。

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay