Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ykykzq authored Sep 12, 2024
1 parent afe456f commit bd65e74
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Build and Lint

# 触发事件,选择 push 和 pull request 事件,触发分支为 main 或 master
on:
push:
branches:
Expand All @@ -20,18 +19,23 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

# 设置 Xilinx Vivado 环境
- name: Set up Xilinx Vivado 2019.2
run: |
sudo apt-get update
sudo apt-get install -y vivado
source /opt/Xilinx/Vivado/2019.2/settings64.sh
# 设置 LoongArch 工具链
- name: Set up LoongArch toolchain
run: |
export PATH=/opt/loongarch32r-linux-gnusf-2022-05-20/bin:${PATH}
# 安装 Xilinx Vivado
- name: Install Xilinx Vivado 2019.2
run: |
mkdir -p /opt/xilinx
wget https://www.xilinx.com/support/download/index.html -O vivado_installer.tar.gz
tar -xzvf vivado_installer.tar.gz -C /opt/xilinx
/opt/xilinx/vivado/2019.2/installer/xsetup --silent --agree XilinxEULA --noexec
# 设置 Xilinx Vivado 环境
- name: Source Vivado environment
run: source /opt/xilinx/vivado/2019.2/settings64.sh

# 编译 asm 文件
- name: Build asm
run: make -C asm
Expand Down

0 comments on commit bd65e74

Please sign in to comment.