Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task 6: Write C code #7

Open
candy-lam opened this issue Apr 16, 2021 · 0 comments
Open

Task 6: Write C code #7

candy-lam opened this issue Apr 16, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@candy-lam
Copy link
Contributor

Please start to remember what you have done for C class. Or learn it anew.

Your tasks:

  1. In code.c, write a piece of very simple (yet correct) C code (e.g. Hello World, simple for loop, simple if...then...else, etc.)
  2. Set up a GitHub Action with a workflow to run the C code, referencing here: https://help.github.com/en/actions/building-and-testing-code-with-continuous-integration/setting-up-continuous-integration-using-github-actions
  3. Since you didn't include anything for configure or make, you should only use this line for run:, and remove irrelevant lines
  • gcc code.c -o code; ./code
  1. This action will deploy your code every time there is a push (merge action) into the master branch
  • It usually takes a while to finish, but should be just a short wait if your code is simple

Continuous Integration in GitHub is a big topic. To know more, try this yourself: https://lab.github.com/githubtraining/github-actions:-continuous-integration

@candy-lam candy-lam added the enhancement New feature or request label Apr 21, 2021
@YHLau13 YHLau13 self-assigned this Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants