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)

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

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay