Skip to content

Commit

Permalink
Compress release artifacts before uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
efoerster committed Jul 1, 2019
1 parent 9c2cb48 commit e3e5012
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
9 changes: 6 additions & 3 deletions .azure-pipelines.yml
Expand Up @@ -20,7 +20,8 @@ jobs:
parameters:
target: "x86_64-unknown-linux-gnu"
executableName: "texlab"
artifactName: "texlab-x86_64-linux"
archiveFile: "texlab-x86_64-linux.tar.gz"
archiveType: "tar"
coverage: true
- job: Windows
pool:
Expand All @@ -40,7 +41,8 @@ jobs:
parameters:
target: "x86_64-pc-windows-msvc"
executableName: "texlab.exe"
artifactName: "texlab-x86_64-windows.exe"
archiveFile: "texlab-x86_64-windows.zip"
archiveType: "zip"
- job: macOS
pool:
vmImage: "macos-10.14"
Expand All @@ -61,7 +63,8 @@ jobs:
parameters:
target: "x86_64-apple-darwin"
executableName: "texlab"
artifactName: "texlab-x86_64-darwin"
archiveFile: "texlab-x86_64-macos.tar.gz"
archiveType: "tar"
- job: Publish
dependsOn:
- Linux
Expand Down
15 changes: 12 additions & 3 deletions .build-steps.yml
@@ -1,7 +1,8 @@
parameters:
target: ""
executableName: ""
artifactName: ""
archiveFile: ""
archiveType: ""
coverage: false

steps:
Expand Down Expand Up @@ -46,9 +47,17 @@ steps:
displayName: "Publish coverage report"
- bash: |
cargo build --release --target ${{ parameters.target }}
cp target/${{ parameters.target }}/${{ parameters.executableName }} $(Build.ArtifactStagingDirectory)/${{ parameters.artifactName }}
condition: and(succeeded(), eq(variables['isReleaseBuild'], 'true'))
displayName: "Build release artifact"
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: "target/${{ parameters.target }}/${{ parameters.executableName }}"
archiveType: ${{ parameters.archiveType }}
tarCompression: "gz"
archiveFile: "$(Build.ArtifactStagingDirectory)/${{ parameters.archiveFile }}"
condition: and(succeeded(), eq(variables['isReleaseBuild'], 'true'))
displayName: "Compress release artifact"
- publish: $(Build.ArtifactStagingDirectory)
artifact: ${{ parameters.artifactName }}
artifact: ${{ parameters.archiveFile }}
condition: and(succeeded(), eq(variables['isReleaseBuild'], 'true'))
displayName: "Publish release artifact"
9 changes: 4 additions & 5 deletions README.md
Expand Up @@ -44,11 +44,10 @@ You can create a debug build by building the server without the `--release` flag
The resulting build can be used with the [Visual Studio Code extension](https://github.com/latex-lsp/texlab-vscode)
by creating a symbolic link:

| Platform | Symlink |
| ----------- | ---------------------------------------------------------------------------------- |
| Windows x64 | `texlab/target/debug/texlab.exe -> texlab-vscode/server/texlab-x86_64-windows.exe` |
| macOS x64 | `texlab/target/debug/texlab -> texlab-vscode/server/texlab-x86_64-darwin` |
| Linux x64 | `texlab/target/debug/texlab -> texlab-vscode/server/texlab-x86_64-linux` |
| Platform | Symlink |
| ---------------- | ------------------------------------------------------------------- |
| Windows x64 | `texlab/target/debug/texlab.exe -> texlab-vscode/server/texlab.exe` |
| Linux, macOS x64 | `texlab/target/debug/texlab -> texlab-vscode/server/texlab` |

TexLab has an extensive test suite of unit and integration tests. You can run them by executing

Expand Down

0 comments on commit e3e5012

Please sign in to comment.