generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add support for Ubuntu 22.04 based github runners (#220)
As there is no support yet for AppImage on Ubuntu 22.04, see #206 (comment) and GitHub rolls out Ubuntu 22.04 soon, see actions/runner-images#6399 Newer tectonic version doesnt seem to be need any dependencies on linux anymore, according to the latest install-docs https://tectonic-typesetting.github.io/book/latest/installation/ This means we can use the normal .tar.gz file on these versions. Stick to AppImage on older versions (<= 0.10.0) to keep compatibility high.
- Loading branch information
Showing
10 changed files
with
174 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
import {Release, ReleaseAsset} from '../src/release' | ||
|
||
describe('release', () => { | ||
const tectonic012Assets: ReleaseAsset[] = [ | ||
{ | ||
name: 'tectonic-0.12.0-aarch64-apple-darwin.tar.gz', | ||
url: 'https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.12.0/tectonic-0.12.0-aarch64-apple-darwin.tar.gz' | ||
}, | ||
{ | ||
name: 'tectonic-0.12.0-arm-unknown-linux-musleabihf.tar.gz', | ||
url: 'https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.12.0/tectonic-0.12.0-arm-unknown-linux-musleabihf.tar.gz' | ||
}, | ||
{ | ||
name: 'tectonic-0.12.0-i686-unknown-linux-gnu.tar.gz', | ||
url: 'https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.12.0/tectonic-0.12.0-i686-unknown-linux-gnu.tar.gz' | ||
}, | ||
{ | ||
name: 'tectonic-0.12.0-mips-unknown-linux-gnu.tar.gz', | ||
url: 'https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.12.0/tectonic-0.12.0-mips-unknown-linux-gnu.tar.gz' | ||
}, | ||
{ | ||
name: 'tectonic-0.12.0-x86_64-apple-darwin.tar.gz', | ||
url: 'https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.12.0/tectonic-0.12.0-x86_64-apple-darwin.tar.gz' | ||
}, | ||
{ | ||
name: 'tectonic-0.12.0-x86_64-pc-windows-gnu.zip', | ||
url: 'https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.12.0/tectonic-0.12.0-x86_64-pc-windows-gnu.zip' | ||
}, | ||
{ | ||
name: 'tectonic-0.12.0-x86_64-pc-windows-msvc.zip', | ||
url: 'https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.12.0/tectonic-0.12.0-x86_64-pc-windows-msvc.zip' | ||
}, | ||
{ | ||
name: 'tectonic-0.12.0-x86_64-unknown-linux-gnu.tar.gz', | ||
url: 'https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.12.0/tectonic-0.12.0-x86_64-unknown-linux-gnu.tar.gz' | ||
}, | ||
{ | ||
name: 'tectonic-0.12.0-x86_64-unknown-linux-musl.tar.gz', | ||
url: 'https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.12.0/tectonic-0.12.0-x86_64-unknown-linux-musl.tar.gz' | ||
}, | ||
{ | ||
name: 'tectonic-0.12.0-x86_64.AppImage', | ||
url: 'https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.12.0/tectonic-0.12.0-x86_64.AppImage' | ||
} | ||
] | ||
|
||
const tectonic012Release = new Release( | ||
81233082, | ||
'tectonic@0.12.0', | ||
tectonic012Assets, | ||
'tectonic 0.12.0' | ||
) | ||
|
||
describe('getAsset', () => { | ||
it('should return .zip filename on windows', async () => { | ||
expect(tectonic012Release.getAsset('windows')).toStrictEqual({ | ||
name: 'tectonic-0.12.0-x86_64-pc-windows-msvc.zip', | ||
url: 'https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.12.0/tectonic-0.12.0-x86_64-pc-windows-msvc.zip' | ||
}) | ||
}) | ||
|
||
it('should return .tar.gz filename on linux', async () => { | ||
expect(tectonic012Release.getAsset('linux')).toStrictEqual({ | ||
name: 'tectonic-0.12.0-x86_64-unknown-linux-gnu.tar.gz', | ||
url: 'https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.12.0/tectonic-0.12.0-x86_64-unknown-linux-gnu.tar.gz' | ||
}) | ||
}) | ||
|
||
it('should return .tar.gz filename on mac', async () => { | ||
expect(tectonic012Release.getAsset('darwin')).toStrictEqual({ | ||
name: 'tectonic-0.12.0-x86_64-apple-darwin.tar.gz', | ||
url: 'https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.12.0/tectonic-0.12.0-x86_64-apple-darwin.tar.gz' | ||
}) | ||
}) | ||
|
||
it('should return .AppImage filename on linux releases up to 0.10.0', async () => { | ||
const fakeTectonic010Assets = tectonic012Assets.map(asset => ({ | ||
name: asset.name.replace(/0.12.0/g, '0.10.0'), | ||
url: asset.url.replace(/0.12.0/g, '0.10.0') | ||
})) | ||
const tectonic010Release = new Release( | ||
81233083, | ||
'tectonic@0.10.0', | ||
fakeTectonic010Assets, | ||
'tectonic 0.10.0' | ||
) | ||
expect(tectonic010Release.getAsset('linux')).toStrictEqual({ | ||
name: 'tectonic-0.10.0-x86_64.AppImage', | ||
url: 'https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.10.0/tectonic-0.10.0-x86_64.AppImage' | ||
}) | ||
}) | ||
}) | ||
}) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.