Skip to content

Commit

Permalink
Merge pull request #108 from 0chain/disable-windows-macos
Browse files Browse the repository at this point in the history
disable macos windows builds
  • Loading branch information
dabasov authored Dec 10, 2023
2 parents 34d51f8 + 5e681fa commit bc539ac
Showing 1 changed file with 91 additions and 91 deletions.
182 changes: 91 additions & 91 deletions .github/workflows/build-s3-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,97 +93,97 @@ jobs:
path: s3mgrt
retention-days: 5

build-windows:
name: Build-windows
runs-on: windows-latest
steps:
- name: Setup go 1.18
uses: actions/setup-go@v2
with:
go-version: '1.18' # The Go version to download (if necessary) and use.

- name: Checkout
uses: actions/checkout@v2

- name: Set GITHUB_ENV
run: |
IF ( "${{github.base_ref}}" -eq "master" -OR "${{github.ref}}" -eq "refs/heads/master" ){
echo "TAG=v0.0.0-master" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
} ElseIf ( "${{github.base_ref}}" -eq "dev" -OR "${{github.ref}}" -eq "refs/heads/dev" ){
echo "TAG=v0.0.0-dev" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
} ElseIf ( "${{github.base_ref}}" -eq "staging" -OR "${{github.ref}}" -eq "refs/heads/staging" ){
echo "TAG=v0.0.0-staging" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
} ELSE {
echo "TAG=v0.0.0-${{github.base_ref}}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
}
- name: Install
run: make build

# - name: Zip Release
# run: |
# copy s3mgrt s3mgrt.exe
# 7z a s3mgrt-windows.zip s3mgrt.exe
# - name: Upload binaries to release
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: s3mgrt-windows.zip
# tag: ${{ env.TAG }}
# overwrite: true
# file_glob: true

- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: s3mgrt-windows
path: s3mgrt
retention-days: 5

build-macos:
name: Build-macos
runs-on: macos-runner
steps:
- name: Setup go 1.18
uses: actions/setup-go@v2
with:
go-version: '1.18' # The Go version to download (if necessary) and use.
- name: Checkout
uses: actions/checkout@v2

- name: Set GITHUB_ENV
run: |
echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
if [[ "${{github.base_ref}}" == "master" || "${{github.ref}}" == "refs/heads/master" ]]; then
echo "TAG=v0.0.0-master" >> $GITHUB_ENV
elif [[ "${{github.base_ref}}" == "dev" || "${{github.ref}}" == "refs/heads/dev" ]]; then
echo "TAG=v0.0.0-dev" >> $GITHUB_ENV
elif [[ "${{github.base_ref}}" == "staging" || "${{github.ref}}" == "refs/heads/staging" ]]; then
echo "TAG=v0.0.0-staging" >> $GITHUB_ENV
else
echo "TAG=v0.0.0-${{github.base_ref}}" >> $GITHUB_ENV
fi
- name: Install
run: make build

# - name: Zip release
# run: tar -czvf s3mgrt-macos.tar.gz ./s3mgrt

# - name: Upload binaries to release
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: s3mgrt-macos.tar.gz
# tag: ${{ env.TAG }}
# overwrite: true
# file_glob: true

- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: s3mgrt-macos
path: s3mgrt
retention-days: 5
# build-windows:
# name: Build-windows
# runs-on: windows-latest
# steps:
# - name: Setup go 1.18
# uses: actions/setup-go@v2
# with:
# go-version: '1.18' # The Go version to download (if necessary) and use.

# - name: Checkout
# uses: actions/checkout@v2

# - name: Set GITHUB_ENV
# run: |
# IF ( "${{github.base_ref}}" -eq "master" -OR "${{github.ref}}" -eq "refs/heads/master" ){
# echo "TAG=v0.0.0-master" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
# } ElseIf ( "${{github.base_ref}}" -eq "dev" -OR "${{github.ref}}" -eq "refs/heads/dev" ){
# echo "TAG=v0.0.0-dev" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
# } ElseIf ( "${{github.base_ref}}" -eq "staging" -OR "${{github.ref}}" -eq "refs/heads/staging" ){
# echo "TAG=v0.0.0-staging" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
# } ELSE {
# echo "TAG=v0.0.0-${{github.base_ref}}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
# }

# - name: Install
# run: make build

# # - name: Zip Release
# # run: |
# # copy s3mgrt s3mgrt.exe
# # 7z a s3mgrt-windows.zip s3mgrt.exe
# # - name: Upload binaries to release
# # uses: svenstaro/upload-release-action@v2
# # with:
# # repo_token: ${{ secrets.GITHUB_TOKEN }}
# # file: s3mgrt-windows.zip
# # tag: ${{ env.TAG }}
# # overwrite: true
# # file_glob: true

# - name: 'Upload Artifact'
# uses: actions/upload-artifact@v2
# with:
# name: s3mgrt-windows
# path: s3mgrt
# retention-days: 5

# build-macos:
# name: Build-macos
# runs-on: macos-runner
# steps:
# - name: Setup go 1.18
# uses: actions/setup-go@v2
# with:
# go-version: '1.18' # The Go version to download (if necessary) and use.
# - name: Checkout
# uses: actions/checkout@v2

# - name: Set GITHUB_ENV
# run: |
# echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
# if [[ "${{github.base_ref}}" == "master" || "${{github.ref}}" == "refs/heads/master" ]]; then
# echo "TAG=v0.0.0-master" >> $GITHUB_ENV
# elif [[ "${{github.base_ref}}" == "dev" || "${{github.ref}}" == "refs/heads/dev" ]]; then
# echo "TAG=v0.0.0-dev" >> $GITHUB_ENV
# elif [[ "${{github.base_ref}}" == "staging" || "${{github.ref}}" == "refs/heads/staging" ]]; then
# echo "TAG=v0.0.0-staging" >> $GITHUB_ENV
# else
# echo "TAG=v0.0.0-${{github.base_ref}}" >> $GITHUB_ENV
# fi
# - name: Install
# run: make build

# # - name: Zip release
# # run: tar -czvf s3mgrt-macos.tar.gz ./s3mgrt

# # - name: Upload binaries to release
# # uses: svenstaro/upload-release-action@v2
# # with:
# # repo_token: ${{ secrets.GITHUB_TOKEN }}
# # file: s3mgrt-macos.tar.gz
# # tag: ${{ env.TAG }}
# # overwrite: true
# # file_glob: true

# - name: 'Upload Artifact'
# uses: actions/upload-artifact@v2
# with:
# name: s3mgrt-macos
# path: s3mgrt
# retention-days: 5

system-tests:
if: github.event_name != 'workflow_dispatch'
Expand Down

0 comments on commit bc539ac

Please sign in to comment.