更新ci #238
Workflow file for this run
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
name: container build and push | |
on: | |
push: | |
branches: [ "*" ] | |
tags: [ '*.*.*' ] | |
pull_request: | |
branches: [ "*" ] | |
# env: | |
# REGISTRY: ghcr.io | |
# EULIX_REGISTRY: hub.eulix.xyz | |
# HUAWEICLOUD_REGISTRY_SH: swr.cn-east-3.myhuaweicloud.com | |
# HUAWEICLOUD_REGISTRY_BJ: swr.cn-north-4.myhuaweicloud.com | |
# HUAWEICLOUD_REGISTRY_GZ: swr.cn-south-1.myhuaweicloud.com | |
# HUAWEICLOUD_REGISTRY_HK: swr.ap-southeast-1.myhuaweicloud.com | |
# HUAWEICLOUD_REGISTRY_SG: swr.ap-southeast-3.myhuaweicloud.com | |
# HUAWEICLOUD_REGISTRY_AF: swr.af-south-1.myhuaweicloud.com | |
# HUAWEICLOUD_REGISTRY_LA: swr.la-north-2.myhuaweicloud.com | |
# IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
build: | |
runs-on: macos-14 | |
permissions: | |
contents: read | |
packages: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 'stable' | |
- name: package-gt | |
run: |- | |
brew install make llvm@16 binutils | |
export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH" | |
export PATH="/opt/homebrew/opt/binutils/bin:$PATH" | |
export PATH="/opt/homebrew/opt/llvm/bin:$PATH" | |
rustup target add x86_64-apple-darwin aarch64-apple-darwin | |
make | |
- name: Archive GT artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: gt-mac | |
path: | | |
release/* |