CD: use Github actions for download; delete appveyor

This commit is contained in:
scurest 2021-03-07 21:35:14 -06:00
parent 8b866bb9b9
commit 38e50cd8fe
2 changed files with 2 additions and 65 deletions

View File

@ -1,7 +1,6 @@
<p align=center><img src="frontispiece.gif" alt="Ore ga Omae o Mamoru model in Blender"></p>
<h3 align=center>apicula</h3>
<p align=center>
<a href="https://ci.appveyor.com/project/scurest/apicula"><img src="https://ci.appveyor.com/api/projects/status/bavh9qh25mbta41x?svg=true" alt="Build status"></a>
<a href="https://github.com/XAMPPRocky/tokei"><img src="https://tokei.rs/b1/github/scurest/apicula?category=code" alt="Lines of code"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/license-0BSD-lightgrey.svg" alt="license 0BSD"></a>
<br>
@ -45,12 +44,9 @@ Importing apicula's COLLADA files has been tested in Blender and Maya.
### Downloads
Pre-built binaries are available for Windows:
* [Download for Windows, 64-bit](https://github.com/scurest/apicula/releases/download/continuous/apicula-latest-windows.zip)
* [apicula for Windows, 64-bit](https://s3.amazonaws.com/apicula/apicula-latest-x86_64-pc-windows-msvc.zip)
* [apicula for Windows, 32-bit](https://s3.amazonaws.com/apicula/apicula-latest-i686-pc-windows-msvc.zip)
These are built automatically off the latest `master`. You may need one of the Visual Studio
This is built automatically off the latest `master`. You may need one of the Visual Studio
Redistributable packages installed.

View File

@ -1,59 +0,0 @@
environment:
global:
PROJECT_NAME: apicula
matrix:
# Stable channel
- TARGET: i686-pc-windows-msvc
CHANNEL: stable
- TARGET: x86_64-pc-windows-msvc
CHANNEL: stable
# Install Rust and Cargo
# (Based on japaric/trust)
install:
- cd C:\
- ps: >-
If ($env:TARGET -eq 'x86_64-pc-windows-gnu') {
$env:PATH += ';C:\msys64\mingw64\bin'
} ElseIf ($Env:TARGET -eq 'i686-pc-windows-gnu') {
$env:PATH += ';C:\msys64\mingw32\bin'
}
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %CHANNEL%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -Vv
- cargo -V
- cd C:\projects\apicula
# 'cargo test' takes care of building for us, so disable Appveyor's build stage.
# This prevents the "directory does not contain a project or solution file" error.
# source: https://github.com/starkat99/appveyor-rust/blob/master/appveyor.yml#L113
build: false
# Equivalent to Travis' `script` phase
test_script:
- cargo build --verbose
- cargo test
before_deploy:
# Generate artifacts for release
- cargo build --release
- mkdir staging
- copy target\release\apicula.exe staging
- cd staging
- 7z a ../%PROJECT_NAME%-latest-%TARGET%.zip *
- appveyor PushArtifact ../%PROJECT_NAME%-latest-%TARGET%.zip
deploy:
provider: S3
access_key_id: $(S3_ACCESS_KEY)
secret_access_key: $(S3_SECRET_KEY)
bucket: apicula
set_public: true
artifact: /.*\.zip/
on:
CHANNEL: stable
branches:
only:
- master