Skip to content

Commit

Permalink
chore: add macos e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
florianow committed Sep 26, 2023
1 parent 21b5793 commit b0739a3
Showing 1 changed file with 54 additions and 54 deletions.
108 changes: 54 additions & 54 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,61 +7,61 @@ on:
types: [prereleased]

jobs:
artifacts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@main
with:
deno-version: "~1.37"
- uses: actions/cache@v3
with:
path: ~/.cache/deno # see https://deno.land/manual/linking_to_external_code
key: ${{ runner.os }}-deno # it seems there's no particular cache keying required
restore-keys: |
${{ runner.os }}-deno
- run: ./build.sh
- name: upload x86_64-unknown-linux-gnu
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/collie-x86_64-unknown-linux-gnu.tar.gz
asset_name: collie-x86_64-unknown-linux-gnu.tar.gz
asset_content_type: application/gzip
- name: upload x86_64-apple-darwin
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/collie-x86_64-apple-darwin.tar.gz
asset_name: collie-x86_64-apple-darwin.tar.gz
asset_content_type: application/gzip
- name: upload aarch64-apple-darwin
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/collie-aarch64-apple-darwin.tar.gz
asset_name: collie-aarch64-apple-darwin.tar.gz
asset_content_type: application/gzip
- name: upload x86_64-pc-windows-msvc
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/collie-x86_64-pc-windows-msvc.exe
asset_name: collie-x86_64-pc-windows-msvc.exe
asset_content_type: application/vnd.microsoft.portable-executable

# artifacts:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: denoland/setup-deno@main
# with:
# deno-version: "~1.37"
# - uses: actions/cache@v3
# with:
# path: ~/.cache/deno # see https://deno.land/manual/linking_to_external_code
# key: ${{ runner.os }}-deno # it seems there's no particular cache keying required
# restore-keys: |
# ${{ runner.os }}-deno
# - run: ./build.sh
# - name: upload x86_64-unknown-linux-gnu
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ github.token }}
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: ./bin/collie-x86_64-unknown-linux-gnu.tar.gz
# asset_name: collie-x86_64-unknown-linux-gnu.tar.gz
# asset_content_type: application/gzip
# - name: upload x86_64-apple-darwin
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ github.token }}
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: ./bin/collie-x86_64-apple-darwin.tar.gz
# asset_name: collie-x86_64-apple-darwin.tar.gz
# asset_content_type: application/gzip
# - name: upload aarch64-apple-darwin
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ github.token }}
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: ./bin/collie-aarch64-apple-darwin.tar.gz
# asset_name: collie-aarch64-apple-darwin.tar.gz
# asset_content_type: application/gzip
# - name: upload x86_64-pc-windows-msvc
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ github.token }}
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: ./bin/collie-x86_64-pc-windows-msvc.exe
# asset_name: collie-x86_64-pc-windows-msvc.exe
# asset_content_type: application/vnd.microsoft.portable-executable
#
# these e2e tests are super basic and just checks whether collie blows up
e2e-windows:
runs-on: windows-latest
needs: artifacts
#needs: artifacts
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand All @@ -87,7 +87,7 @@ jobs:
run: .\test\e2e.ps1
e2e-linux:
runs-on: ubuntu-latest
needs: artifacts
# needs: artifacts
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand All @@ -110,7 +110,7 @@ jobs:
COLLIE_VERSION: ${{ github.event.release.tag_name }}
e2e-macos:
runs-on: macos-latest
needs: artifacts
# needs: artifacts
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand Down

0 comments on commit b0739a3

Please sign in to comment.