Skip to content

Commit

Permalink
[add] GitHub release action & VS Code cloud entries
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed Jan 2, 2025
1 parent 286f9f8 commit 7459a30
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 4 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ on:

jobs:
Build_and_Test:
runs-on: ubuntu-latest
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4

Expand All @@ -13,3 +21,14 @@ jobs:
xmake-version: latest

- run: xmake && xmake run

- if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: ${{ !contains(github.ref, 'refs/heads/master') }}
generate_release_notes: true
files: |
build/linux/*
build/macosx/*
build/windows/*
14 changes: 12 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"recommendations": ["tboox.xmake-vscode", "ms-vscode.cpptools-extension-pack"]
}
"recommendations": [
"tboox.xmake-vscode",
"ms-vscode.cpptools-extension-pack",
"yzhang.markdown-all-in-one",
"redhat.vscode-yaml",
"esbenp.prettier-vscode",
"eamodio.gitlens",
"github.vscode-pull-request-github",
"github.vscode-github-actions",
"github.copilot"
]
}
19 changes: 18 additions & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,21 @@ The simplest C/C++ project template for beginners.

[![CI & CD](https://github.com/FreeCodeCamp-Chengdu/Cpp-quick-start/actions/workflows/main.yml/badge.svg)][1]

## Install minimal All-in-One Development Environment
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)][2]
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][3]

## Use this template project in Cloud

1. Click the **[<kbd>Use this template</kbd>][4] button** on the top of this GitHub repository's home page, then create your own repository in your account/organization namespace

2. Click the **[<kbd>Open in GitHub codespaces</kbd>][2] button** on the top of ReadMe file, then an **online VS Code development environment** will be started immediately

3. Run following command in VS Code terminal to install XMake:
```bash
curl -fsSL https://xmake.io/shget.text | bash
```

## Install minimal All-in-One Development Environment in your computer

### Windows

Expand Down Expand Up @@ -120,3 +134,6 @@ xmake install -o installdir
```

[1]: https://github.com/FreeCodeCamp-Chengdu/Cpp-quick-start/actions/workflows/main.yml
[2]: https://codespaces.new/FreeCodeCamp-Chengdu/Cpp-quick-start
[3]: https://gitpod.io/?autostart=true#https://github.com/FreeCodeCamp-Chengdu/Cpp-quick-start
[4]: https://github.com/new?template_name=Cpp-quick-start&template_owner=FreeCodeCamp-Chengdu

0 comments on commit 7459a30

Please sign in to comment.