-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package is made using msys2 in CI Signed-off-by: Matthias Gatto <[email protected]>
- Loading branch information
1 parent
c81b251
commit d9cbdd7
Showing
6 changed files
with
65 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
CMAKE_ARG="-G MSYS Makefiles" make |
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,58 @@ | ||
name: Package Application on Mingw64 | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: MINGW64 | ||
install: >- | ||
git | ||
base-devel | ||
zip | ||
pacboy: | ||
gcc | ||
cmake | ||
openssl | ||
json-c | ||
curl | ||
|
||
- shell: msys2 {0} | ||
run: | | ||
git submodule update --init | ||
.github/script/build-win.sh | ||
mkdir oapi-pkg | ||
LD_LIBRARY_PATH="$PWD" ./cp-lib.sh oapi-cli oapi-pkg/ | ||
cp oapi-cli.exe oapi-pkg/ | ||
zip -r oapi-cli-x86_64.zip oapi-pkg/ | ||
./oapi-pkg/oapi-cli.exe --insecure ReadRegions | grep api.eu-west-2.outscale.com | ||
env: | ||
OSC_ACCESS_KEY: ${{secrets.OSC_ACCESS_KEY}} | ||
OSC_SECRET_KEY: ${{secrets.OSC_SECRET_KEY}} | ||
OSC_REGION: ${{secrets.OSC_REGION}} | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
if: ${{ github.event_name != 'push' }} | ||
with: | ||
name: oapi-cli-win | ||
path: | | ||
oapi-cli-x86_64.zip | ||
- name: upload nightly | ||
uses: "marvinpinto/action-automatic-releases@latest" | ||
if: ${{ github.event_name == 'push' }} | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: true | ||
automatic_release_tag: "nightly-windows" | ||
title: "Windows Development Build" | ||
files: | | ||
oapi-cli-x86_64.zip |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "COGNAC"] | ||
path = COGNAC | ||
url = https://github.com/outscale-mgo/COGNAC.git | ||
url = https://github.com/outscale/COGNAC.git |
Submodule COGNAC
updated
8 files
+15 −11 | .github/workflows/build.yml | |
+15 −0 | .github/workflows/cred-scan.yml | |
+5 −2 | README.md | |
+2 −1 | cognac_gen.sh | |
+6 −1 | configure | |
+65 −1 | lib.c | |
+87 −0 | lib.h | |
+1 −1 | main_tpl.c |
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