Skip to content

Commit

Permalink
Action: Add 14.2.Rel1 arm-none-eabi-gcc release.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosperate committed Dec 12, 2024
1 parent 0cc83a7 commit 47ddd51
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-all-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
os: [ubuntu-latest, macos-12, macos-14, windows-latest, self-hosted-linux-arm64]
release:
- 'latest'
- '14.2.Rel1'
- '13.3.Rel1'
- '13.2.Rel1'
- '12.3.Rel1'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ jobs:
- name: Print out version
run: arm-none-eabi-gcc --version
- name: Check the version matches
run: arm-none-eabi-gcc --version | grep -qi 13.3.Rel1
run: arm-none-eabi-gcc --version | grep -qi 14.2.Rel1
- name: Check output path is correct
run: echo "${{ steps.action-under-test-id.outputs.path }}" | grep -q /home/runner/gcc-arm-none-eabi-13.3.1-linux-x64/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin
run: echo "${{ steps.action-under-test-id.outputs.path }}" | grep -q /home/runner/gcc-arm-none-eabi-14.2.1-linux-x64/arm-gnu-toolchain-14.2.rel1-darwin-x86_64-arm-none-eabi/bin
3 changes: 2 additions & 1 deletion 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: '13.3.Rel1' # <-- The compiler release to use
release: '14.2.Rel1' # <-- The compiler release to use
```
More information can be found in the [Advanced Options](#advanced-options)
Expand All @@ -49,6 +49,7 @@ section.
## Available releases

- `latest` <-- Always points to the latest release
- `14.2.Rel1`
- `13.3.Rel1` &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `13.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`
Expand Down
12 changes: 6 additions & 6 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ test('test fetching urls for invalid platforms', () => {
});

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

const latestRelease = gcc.latestGccVersion();

Expand Down Expand Up @@ -241,9 +241,9 @@ describe('Real install in temp dirs.', () => {
test('6-2017-q1 linux', async () => await tmpInstall('6-2017-q1', 'linux', 'x64'));
test('9-2019-q4 darwin', async () => await tmpInstall('9-2019-q4', 'darwin', 'x64'));
test('10.3-2021.07 win32', async () => await tmpInstall('10.3-2021.07', 'win32', 'x64'));
test('13.3.Rel1 linux', async () => await tmpInstall('13.3.Rel1', 'linux', 'x64'));
test('13.3.Rel1 linux', async () => await tmpInstall('13.3.Rel1', 'linux', 'arm64'));
test('13.3.Rel1 darwin', async () => await tmpInstall('13.3.Rel1', 'darwin', 'x64'));
test('13.3.Rel1 darwin', async () => await tmpInstall('13.3.Rel1', 'darwin', 'arm64'));
test('13.3.Rel1 win32', async () => await tmpInstall('13.3.Rel1', 'win32', 'x64'));
test('14.2.Rel1 linux', async () => await tmpInstall('14.2.Rel1', 'linux', 'x64'));
test('14.2.Rel1 linux', async () => await tmpInstall('14.2.Rel1', 'linux', 'arm64'));
test('14.2.Rel1 darwin', async () => await tmpInstall('14.2.Rel1', 'darwin', 'x64'));
test('14.2.Rel1 darwin', async () => await tmpInstall('14.2.Rel1', 'darwin', 'arm64'));
test('14.2.Rel1 win32', async () => await tmpInstall('14.2.Rel1', 'win32', 'x64'));
});
22 changes: 22 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,28 @@ exports.gccVersionToSemver = exports.distributionUrl = exports.latestGccVersion
const core = __importStar(__nccwpck_require__(2186));
const valid_1 = __importDefault(__nccwpck_require__(9601));
const versions = {
'14.2.Rel1': {
win32: {
url: 'https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-mingw-w64-x86_64-arm-none-eabi.zip',
md5: '7426b9eec8b576f0a524ede63013c547',
},
mac_x86_64: {
url: 'https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-darwin-x86_64-arm-none-eabi.tar.xz',
md5: 'd5fb1ae60e4d67eb2986837dbcd6a066',
},
mac_arm64: {
url: 'https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-darwin-arm64-arm-none-eabi.tar.xz',
md5: '40d1c9208aed7fab08b0f27e5383dcef',
},
linux_x86_64: {
url: 'https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz',
md5: 'fcdcd7c8d5b22d2d0cc6bf3721686e69',
},
linux_aarch64: {
url: 'https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-aarch64-arm-none-eabi.tar.xz',
md5: '342d6d9dc75e6d4c05a748f2cecc96a6',
},
},
'13.3.Rel1': {
win32: {
url: 'https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.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.

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

const versions: {[gccRelease: string]: {[platform: string]: UrlData}} = {
'14.2.Rel1': {
win32: {
url:
'https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-mingw-w64-x86_64-arm-none-eabi.zip',
md5: '7426b9eec8b576f0a524ede63013c547',
},
mac_x86_64: {
url:
'https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-darwin-x86_64-arm-none-eabi.tar.xz',
md5: 'd5fb1ae60e4d67eb2986837dbcd6a066',
},
mac_arm64: {
url:
'https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-darwin-arm64-arm-none-eabi.tar.xz',
md5: '40d1c9208aed7fab08b0f27e5383dcef',
},
linux_x86_64: {
url:
'https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz',
md5: 'fcdcd7c8d5b22d2d0cc6bf3721686e69',
},
linux_aarch64: {
url:
'https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-aarch64-arm-none-eabi.tar.xz',
md5: '342d6d9dc75e6d4c05a748f2cecc96a6',
},
},
'13.3.Rel1': {
win32: {
url:
Expand Down

0 comments on commit 47ddd51

Please sign in to comment.