Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoireHENRY committed Dec 16, 2023
1 parent f5da732 commit 4203b65
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 28 deletions.
51 changes: 25 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,26 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest, gregoireh-1_macos-arm64-M1]
os: [ubuntu-latest, macos-latest, windows-latest] # , gregoireh-1_macos-arm64-M1]

include:
- os: ubuntu-latest
PLATFORM: ubuntu
SHELL: bashpwsh
EXT: .exe
OUT_EXT: .exe

- os: macos-latest
PLATFORM: macos-x86_64
SHELL: bash
EXT:
OUT_EXT: .tar.gz

- os: windows-latest
PLATFORM: windows
SHELL: pwsh
EXT:
OUT_EXT: .tar.gz

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -41,35 +60,16 @@ jobs:

- name: Set environment
run: |
if [ "${{ matrix.os }}" == "windows-latest" ]; then
PLATFORM=windows
elif [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
PLATFORM=ubuntu
elif [ "${{ matrix.os }}" == "macos-latest" ]; then
PLATFORM=macos-x86_64
elif [ "${{ matrix.os }}" == "gregoireh-1_macos-arm64-M1" ]; then
PLATFORM=macos-arm64
fi
if [ "${{ matrix.os }}" == "windows-latest" ]; then
EXT=.exe
OUT_EXT=.exe
SHELL=pwsh
else
EXT=
OUT_EXT=.tar.gz
SHELL=bash
fi
BUNDLE_NAME=kalast-$GITHUB_REF_NAME-$PLATFORM
RELEASE_FILE=$BUNDLE_NAME$OUT_EXT
echo "PLATFORM=$PLATFORM" >> "$GITHUB_ENV"
echo "EXT=$EXT" >> "$GITHUB_ENV"
echo "OUT_EXT=$OUT_EXT" >> "$GITHUB_ENV"
echo "SHELL=$SHELL" >> "$GITHUB_ENV"
echo "BUNDLE_NAME=$BUNDLE_NAME" >> "$GITHUB_ENV"
echo "RELEASE_FILE=$RELEASE_FILE" >> "$GITHUB_ENV"
echo "$PLATFORM"
echo "$SHELL"
echo "$BUNDLE_NAME"
echo "$RELASE_FILE"
shell: bash

- name: Build
Expand Down Expand Up @@ -111,7 +111,6 @@ jobs:
mv bundle $BUNDLE_NAME
tar cvzf $RELEASE_FILE $BUNDLE_NAME
fi
shell: ${{ env.SHELL }}
- uses: softprops/action-gh-release@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kalast"
version = "0.4.0-beta29"
version = "0.4.0-beta30"
authors = ["Grégoire Henry <[email protected]>"]
edition = "2021"
description = "Thermophysical Model for Binary Asteroids"
Expand Down

0 comments on commit 4203b65

Please sign in to comment.