Skip to content

Commit

Permalink
Action: Add 12.3.Rel1 arm-none-eabi-gcc release. (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosperate authored Aug 6, 2023
1 parent 19a291a commit 8e3492a
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
release:
- 'latest'
- '12.3.Rel1'
- '12.2.Rel1'
- '11.3.Rel1'
- '11.2-2022.02'
Expand Down Expand Up @@ -132,6 +133,6 @@ jobs:
- name: Print out version
run: arm-none-eabi-gcc --version
- name: Check the version matches
run: arm-none-eabi-gcc --version | grep -q 12.2.Rel1
run: arm-none-eabi-gcc --version | grep -q 12.3.Rel1
- name: Check output path is correct
run: echo "${{ steps.action-under-test-id.outputs.path }}" | grep -q /home/runner/gcc-arm-none-eabi-12.2.1-linux/arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi/bin
run: echo "${{ steps.action-under-test-id.outputs.path }}" | grep -q /home/runner/gcc-arm-none-eabi-12.3.1-linux/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/bin
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v1.7.0 - 2023-08-06
### Added
- Add `12.3.Rel1` Arm GNU Toolchain release (#43)

## v1.6.3 - 2023-07-10
### Security
- Security update for third party dependencies.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ steps:
- name: Install Arm GNU Toolchain (arm-none-eabi-gcc)
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: '12.2.Rel1' # <-- The compiler release to use
release: '12.3.Rel1' # <-- The compiler release to use
```
More information can be found in the [Advanced Options](#advanced-options)
Expand All @@ -49,7 +49,7 @@ section.
## Available releases

- `latest` <-- Always points to the latest release
- `12.2.Rel1`
- `12.3.Rel1` &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `12.2.Rel1`
- `11.3.Rel1` &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `11.2-2022.02`
- `10.3-2021.10` &nbsp;`10.3-2021.07` &nbsp;`10-2020-q4`
- `9-2020-q2` &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `9-2019-q4`
Expand Down
8 changes: 4 additions & 4 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ test('test url', () => {
});

test('latest points to a known latest release', async () => {
const knownLatestRelease = '12.2.Rel1';
const knownLatestRelease = '12.3.Rel1';

const latestRelease = gcc.latestGccVersion();

Expand Down Expand Up @@ -198,7 +198,7 @@ describe('Real install in temp dirs.', () => {
test('6-2017-q1 linux', async () => await tmpInstall('6-2017-q1', 'linux'));
test('9-2019-q4 darwin', async () => await tmpInstall('9-2019-q4', 'darwin'));
test('10.3-2021.07 win32', async () => await tmpInstall('10.3-2021.07', 'win32'));
test('12.2.Rel1 linux', async () => await tmpInstall('12.2.Rel1', 'linux'));
test('12.2.Rel1 darwin', async () => await tmpInstall('12.2.Rel1', 'darwin'));
test('12.2.Rel1 win32', async () => await tmpInstall('12.2.Rel1', 'win32'));
test('12.3.Rel1 linux', async () => await tmpInstall('12.3.Rel1', 'linux'));
test('12.3.Rel1 darwin', async () => await tmpInstall('12.3.Rel1', 'darwin'));
test('12.3.Rel1 win32', async () => await tmpInstall('12.3.Rel1', 'win32'));
});
18 changes: 18 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.gccVersionToSemver = exports.distributionUrl = exports.latestGccVersion = exports.availableVersions = void 0;
const valid_1 = __importDefault(__nccwpck_require__(9601));
const versions = {
'12.3.Rel1': {
win32: {
url: 'https://developer.arm.com/-/media/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-mingw-w64-i686-arm-none-eabi.zip',
md5: '36c3f864ae8a4ded4a464e67c74f4973',
},
mac_x86_64: {
url: 'https://developer.arm.com/-/media/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-darwin-x86_64-arm-none-eabi.tar.xz',
md5: '13ae2cc016564507c91a4fcffb6e3c54',
},
linux_x86_64: {
url: 'https://developer.arm.com/-/media/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi.tar.xz',
md5: '00ebb1b70b1f88906c61206457eacb61',
},
linux_aarch64: {
url: 'https://developer.arm.com/-/media/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-aarch64-arm-none-eabi.tar.xz',
md5: '02c9b0d3bb1110575877d8eee1f223f2',
},
},
'12.2.Rel1': {
win32: {
url: 'https://developer.arm.com/-/media/Files/downloads/gnu/12.2.rel1/binrel/arm-gnu-toolchain-12.2.rel1-mingw-w64-i686-arm-none-eabi.zip',
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions src/gcc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,28 @@ interface UrlData {
}

const versions: {[gccRelease: string]: {[platform: string]: UrlData}} = {
'12.3.Rel1': {
win32: {
url:
'https://developer.arm.com/-/media/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-mingw-w64-i686-arm-none-eabi.zip',
md5: '36c3f864ae8a4ded4a464e67c74f4973',
},
mac_x86_64: {
url:
'https://developer.arm.com/-/media/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-darwin-x86_64-arm-none-eabi.tar.xz',
md5: '13ae2cc016564507c91a4fcffb6e3c54',
},
linux_x86_64: {
url:
'https://developer.arm.com/-/media/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi.tar.xz',
md5: '00ebb1b70b1f88906c61206457eacb61',
},
linux_aarch64: {
url:
'https://developer.arm.com/-/media/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-aarch64-arm-none-eabi.tar.xz',
md5: '02c9b0d3bb1110575877d8eee1f223f2',
},
},
'12.2.Rel1': {
win32: {
url:
Expand Down

0 comments on commit 8e3492a

Please sign in to comment.