Skip to content

Commit

Permalink
继续尝试 Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
iotang committed Feb 28, 2020
1 parent f5faaf1 commit 399de3f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ jobs:
[string]$tag = ${env:ref}.Substring(${env:ref}.LastIndexOf('/') + 1)
[string]$url = 'https://api.github.com/repos/' + ${env:githubFullName} + '/releases/tags/' + ${tag}
$response={}
Write-Host "URL : " $url
try {
$response = Invoke-RestMethod -Uri $url -Method Get
} catch {
Write-Host "URL : " $url
Write-Host "StatusCode:" $_.Exception.Response.StatusCode.value__
Write-Host "StatusDescription:" $_.Exception.Response.StatusDescription
# 没查到,输出
Expand All @@ -84,8 +84,8 @@ jobs:
echo "::set-output name=needCreateRelease::true"
}
# tag 创建github-Release
- name: createReleaseWin
id: createReleaseWin
- name: createReleaseMacos
id: createReleaseMacos
if: startsWith(github.event.ref, 'refs/tags/') && steps.queryReleaseMacos.outputs.needCreateRelease == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -103,7 +103,7 @@ jobs:
shell: pwsh
env:
githubFullName: ${{ github.event.repository.full_name }}
upUrl: ${{ steps.queryReleaseMacos.outputs.upload_url }}
upUrl: ${{ steps.createReleaseMacos.outputs.upload_url }}
ref: ${{ github.event.ref }}
run: |
# upUrl不为空,导出就完事
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ jobs:
[string]$tag = ${env:ref}.Substring(${env:ref}.LastIndexOf('/') + 1)
[string]$url = 'https://api.github.com/repos/' + ${env:githubFullName} + '/releases/tags/' + ${tag}
$response={}
Write-Host "URL : " $url
try {
$response = Invoke-RestMethod -Uri $url -Method Get
} catch {
Write-Host "URL : " $url
Write-Host "StatusCode:" $_.Exception.Response.StatusCode.value__
Write-Host "StatusDescription:" $_.Exception.Response.StatusDescription
# 没查到,输出
# echo "::set-output name=needCreateRelease::true"
echo "::set-output name=needCreateRelease::true"
return
}
[string]$latestUpUrl = $response.upload_url
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@

A tiny judging environment for OI contest based on Project_LemonPlus

### 现已支持 LinuxWindows
**现已支持 LinuxWindows,以及 macOS**

看起来 macOS 也支持了,不愧是 Qt
|系统名称|打包状态|
|:--:|:--:|
|Windows|![Windows](https://github.com/iotang/Project_LemonLime/workflows/Windows/badge.svg)|
|Ubuntu|![Ubuntu](https://github.com/iotang/Project_LemonLime/workflows/Ubuntu/badge.svg)|
|macOS|![MacOS](https://github.com/iotang/Project_LemonLime/workflows/MacOS/badge.svg)|

已在这些系统测试:

Expand Down

0 comments on commit 399de3f

Please sign in to comment.