Skip to content

Commit

Permalink
💚 Fix CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielePicco committed Feb 26, 2024
1 parent e2b0189 commit c8a6ae0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 34 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@ jobs:
fail-fast: false
matrix:
build:
# - {
# NAME: linux-x64-glibc,
# OS: ubuntu-20.04,
# TOOLCHAIN: stable,
# TARGET: x86_64-unknown-linux-gnu,
# }
# - {
# NAME: linux-x86-glibc,
# OS: ubuntu-22.04,
# TOOLCHAIN: stable,
# TARGET: i686-unknown-linux-gnu,
# }
# - {
# NAME: linux-arm64-glibc,
# OS: ubuntu-20.04,
# TOOLCHAIN: stable,
# TARGET: aarch64-unknown-linux-gnu,
# }
- {
NAME: linux-x64-glibc,
OS: ubuntu-20.04,
TOOLCHAIN: stable,
TARGET: x86_64-unknown-linux-gnu,
}
- {
NAME: linux-x86-glibc,
OS: ubuntu-22.04,
TOOLCHAIN: stable,
TARGET: i686-unknown-linux-gnu,
}
- {
NAME: linux-arm64-glibc,
OS: ubuntu-20.04,
TOOLCHAIN: stable,
TARGET: aarch64-unknown-linux-gnu,
}
- {
NAME: win32-x64-msvc,
OS: windows-2022,
Expand All @@ -50,18 +50,18 @@ jobs:
TOOLCHAIN: stable,
TARGET: i686-pc-windows-msvc,
}
# - {
# NAME: darwin-x64,
# OS: macos-11,
# TOOLCHAIN: stable,
# TARGET: x86_64-apple-darwin,
# }
# - {
# NAME: darwin-arm64,
# OS: macos-11,
# TOOLCHAIN: stable,
# TARGET: aarch64-apple-darwin,
# }
- {
NAME: darwin-x64,
OS: macos-11,
TOOLCHAIN: stable,
TARGET: x86_64-apple-darwin,
}
- {
NAME: darwin-arm64,
OS: macos-11,
TOOLCHAIN: stable,
TARGET: aarch64-apple-darwin,
}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set ON_RELEASE_BRANCH based on trigger
shell: bash
run: echo "ON_RELEASE_BRANCH=true" >> $GITHUB_ENV
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release/v')

Expand Down Expand Up @@ -167,10 +168,6 @@ jobs:
npm i -g @coral-xyz/anchor-cli@${{ env.anchor_version }} ts-mocha typescript
anchor test
- name: Print github.ref
shell: bash
run: echo "The current github.ref is $GITHUB_REF"

- name: Install the Bolt CLI and create & build a new project
shell: bash
if: ${{ env.ON_RELEASE_BRANCH != 'true' }}
Expand Down

0 comments on commit c8a6ae0

Please sign in to comment.