prepare upload.exe compiled with 64bit sbcl and use to upload 32bit result.

This commit is contained in:
SANO Masatoshi 2021-07-05 16:34:17 +09:00
parent 7ee3f5bb5d
commit b7b5a1c6c9
3 changed files with 32 additions and 2 deletions

View file

@ -57,5 +57,4 @@ jobs:
GITHUB_OAUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: msys2 {0}
run: |
ros install snmsts/sn.github
make -f scripts/Makefile latest-version musl-upload
make -f scripts/Makefile latest-version win-upload

View file

@ -48,4 +48,11 @@ musl:
musl-upload:
env FILE=`echo roswell*.tar.bz2` VERSION=$(VERSION) $(MAKE) -f $(realpath $(firstword $(MAKEFILE_LIST))) upload
upload.exe:
curl --no-progress-bar --retry 10 -o upload.tar.bz2 -L https://github.com/roswell/roswell/releases/download/v21.06.14.110/upload-mingw64_nt-x86_64.tar.bz2
tar xvf upload.tar.bz2
win-upload: upload.exe
env FILE=`echo roswell*.tar.bz2` VERSION=v$(VERSION) OWNER=roswell REPO=roswell ./upload.exe
.PHONY: all latest-version checkout show build-docker pull-docker docker upload musl

24
scripts/upload.ros Normal file
View file

@ -0,0 +1,24 @@
#!/bin/sh
#|-*- mode:lisp -*-|#
#|
exec ros -Q -- $0 "$@"
|#
(progn ;;init forms
(ros:ensure-asdf)
#+quicklisp(ql:quickload '(:roswell.github.utils) :silent t))
(defpackage :ros.script.upload.3834455303
(:use :cl))
(in-package :ros.script.upload.3834455303)
(defun main (&rest argv)
(declare (ignorable argv))
(mapc (lambda (x)
(print x)
(roswell.github.utils:github
x
(uiop:getenv "VERSION")
(uiop:getenv "OWNER")
(uiop:getenv "REPO")))
(directory (uiop:getenv "FILE"))))
;;; vim: set ft=lisp lisp: