https://github.com/srz-zumix/cpp-github-actions-hello-world
C++ GitHub Actions Hello World
https://github.com/srz-zumix/cpp-github-actions-hello-world
cpp github-actions template
Last synced: about 2 months ago
JSON representation
C++ GitHub Actions Hello World
- Host: GitHub
- URL: https://github.com/srz-zumix/cpp-github-actions-hello-world
- Owner: srz-zumix
- License: mit
- Created: 2024-05-19T08:02:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-19T12:35:38.000Z (about 2 years ago)
- Last Synced: 2025-01-21T18:25:12.650Z (over 1 year ago)
- Topics: cpp, github-actions, template
- Language: Makefile
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.ja.md
- License: LICENSE
Awesome Lists containing this project
README
# cpp-github-actions-hello-world
C++ GitHub Actions の Hello World テンプレート
## 使い方
### Repository の作成
[Start](https://github.com/new?template_owner=srz-zumix&template_name=cpp-github-actions-hello-world&owner=%40me&name=cpp-github-actions-hello-world&description=My+clone+repository&visibility=public)
1. **Start** 右クリックし新規タブで開きます
1. 開いたタブに移動します。おおよその入力項目は自動でセットされています
- Owner を選択してください
- Public リポジトリを作成してください(Private の場合は Actions の実行に[制限](https://docs.github.com/ja/billing/managing-billing-for-github-actions/about-billing-for-github-actions)がかかります)
- 最後に最下部にある `Create repository` ボタンをクリックします
### ワークフローの作成
1. リポジトリの「Actions」タブを開きます
1. `New workflow` ボタンをクリックします
1. `Suggested for this repository` に `C/C++ with Make` があると思いますのでそちらの `Configure` をクリックします
1. ワークフローの雛形ができるのでそれを元に編集します
- `configure` と `make distcheck` の step は使わないので削除します
- `make check` の step の name と run を `make run` に変更します
1. Commit してプルリクエストを作成します.
- `Commit Changes..` をクリックしてください。コミット作成のポップアップが表示されます
- `Create a new branch for this commit and start a pull request` を選択します
- ブランチ名を入力します。そのままでも問題ありません
- ポップアップ下部の `Commit Changes` をクリックします
- `Open a pull request` ページが開くので、詳細を記入したのちに `Create pull request` ボタンをクリックします
1. Checks が完了するのを待ちます
1. `All checks have passed` になれば成功です
- `Show all checks` をクリックすると Checks 一覧が表示されます
- C/C++ CI / build (pull_request) の `Details` をクリックし開きます
- ログに「Hello GitHub Actions!」と出力されているのを確認してください
## オススメチュートリアル
- [skills/hello-github-actions](https://github.com/skills/hello-github-actions)