Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 36 additions & 32 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
needs: [build]
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, ubuntu-24.04-arm]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/download-artifact@v4
Expand All @@ -40,33 +40,37 @@ jobs:
- name: Test default
uses: ./
id: test-default
- run: |
- name: Test default version
run: |
firefox --version
${{ steps.test-default.outputs.firefox-path }} --version
- name: Test latest-esr
- name: Test latest-beta
uses: ./
with:
firefox-version: latest-esr
id: test-latest-esr
- run: |
firefox-version: latest-beta
id: test-latest-beta
- name: Test latest-beta version
run: |
firefox --version
${{ steps.test-latest-esr.outputs.firefox-path }} --version
- name: Test 132.0
${{ steps.test-latest-beta.outputs.firefox-path }} --version
- name: Test 140.0
uses: ./
with:
firefox-version: "132.0"
id: test-132-0
- run: |
firefox-version: "140.0"
id: test-140
- name: Test 140.0 version
run: |
firefox --version
${{ steps.test-132-0.outputs.firefox-path }} --version
- name: Test devedition-132.0b1
${{ steps.test-140.outputs.firefox-path }} --version
- name: Test devedition-140.0b1
uses: ./
with:
firefox-version: "devedition-132.0b1"
id: test-devedition-132-0b1
- run: |
firefox-version: "devedition-140.0b1"
id: test-devedition-140-0b1
- name: Test devedition-140.0b1 version
run: |
firefox --version
${{ steps.test-devedition-132-0b1.outputs.firefox-path }} --version
${{ steps.test-devedition-140-0b1.outputs.firefox-path }} --version

test-windows:
needs: [build]
Expand All @@ -87,33 +91,33 @@ jobs:
run: |
firefox --version
& "${{ steps.test-default.outputs.firefox-path }}" --version
- name: Test latest-esr
- name: Test latest-beta
uses: ./
with:
firefox-version: latest-esr
id: test-latest-esr
- name: Test latest-esr version
firefox-version: latest-beta
id: test-latest-beta
- name: Test latest-beta version
shell: pwsh
run: |
firefox --version
& "${{ steps.test-latest-esr.outputs.firefox-path }}" --version
- name: Test 132.0
& "${{ steps.test-latest-beta.outputs.firefox-path }}" --version
- name: Test 140.0
uses: ./
with:
firefox-version: "132.0"
id: test-132-0
- name: Test 132.0 version
firefox-version: "140.0"
id: test-140
- name: Test 140.0 version
shell: pwsh
run: |
firefox --version
& "${{ steps.test-132-0.outputs.firefox-path }}" --version
- name: Test devedition-132.0b1
& "${{ steps.test-140.outputs.firefox-path }}" --version
- name: Test devedition-140.0b1
uses: ./
with:
firefox-version: "devedition-132.0b1"
id: test-devedition-132-0b1
- name: Test devedition-132.0b1 version
firefox-version: "devedition-140.0b1"
id: test-devedition-140-0b1
- name: Test devedition-140.0b1 version
shell: pwsh
run: |
firefox --version
& "${{ steps.test-devedition-132-0b1.outputs.firefox-path }}" --version
& "${{ steps.test-devedition-140-0b1.outputs.firefox-path }}" --version
9 changes: 9 additions & 0 deletions __test__/DownloadURL.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ describe("ArchiveDownloadURL", () => {
{ os: OS.LINUX, arch: Arch.AMD64 },
"https://ftp.mozilla.org/pub/firefox/releases/134.0/linux-x86_64/en-US/firefox-134.0.tar.bz2",
],
[
{ os: OS.LINUX, arch: Arch.ARM64 },
"https://ftp.mozilla.org/pub/firefox/releases/134.0/linux-aarch64/en-US/firefox-134.0.tar.bz2",
],
[
{ os: OS.MACOS, arch: Arch.AMD64 },
"https://ftp.mozilla.org/pub/firefox/releases/134.0/mac/en-US/Firefox%20134.0.dmg",
Expand Down Expand Up @@ -77,6 +81,11 @@ describe("LatestDownloadURL", () => {
{ os: OS.LINUX, arch: Arch.AMD64 },
"https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US",
],
[
LatestVersion.LATEST,
{ os: OS.LINUX, arch: Arch.ARM64 },
"https://download.mozilla.org/?product=firefox-latest&os=linux64-aarch64&lang=en-US",
],
[
LatestVersion.LATEST_DEVEDITION,
{ os: OS.LINUX, arch: Arch.AMD64 },
Expand Down
4 changes: 4 additions & 0 deletions src/DownloadURL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export class ArchiveDownloadURL implements DownloadURL {
return "linux-i686";
} else if (os === OS.LINUX && arch === Arch.AMD64) {
return "linux-x86_64";
} else if (os === OS.LINUX && arch === Arch.ARM64) {
return "linux-aarch64";
} else if (os === OS.WINDOWS && arch === Arch.I686) {
return "win32";
} else if (os === OS.WINDOWS && arch === Arch.AMD64) {
Expand Down Expand Up @@ -120,6 +122,8 @@ export class LatestDownloadURL implements DownloadURL {
return "linux";
} else if (os === OS.LINUX && arch === Arch.AMD64) {
return "linux64";
} else if (os === OS.LINUX && arch === Arch.ARM64) {
return "linux64-aarch64";
} else if (os === OS.WINDOWS && arch === Arch.I686) {
return "win";
} else if (os === OS.WINDOWS && arch === Arch.AMD64) {
Expand Down
Loading