Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
masx200 committed Dec 12, 2024
1 parent a7ec041 commit e844126
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ jobs:
sudo chmod 777 /etc/apt/sources.list
sudo cat >>/etc/apt/sources.list<<EOF
deb https://mirrors.huaweicloud.com/ubuntu/ lunar-proposed main restricted universe multiverse
deb https://mirrors.huaweicloud.com/ubuntu/ lunar main restricted universe multiverse
deb https://mirrors.huaweicloud.com/ubuntu/ lunar-backports main restricted universe multiverse
deb https://mirrors.huaweicloud.com/ubuntu/ lunar-security main restricted universe multiverse
deb https://mirrors.huaweicloud.com/ubuntu/ lunar-updates main restricted universe multiverse
deb https://mirrors.huaweicloud.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb https://mirrors.huaweicloud.com/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.huaweicloud.com/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.huaweicloud.com/ubuntu/ jammy-security main restricted universe multiverse
deb https://mirrors.huaweicloud.com/ubuntu/ jammy-updates main restricted universe multiverse
EOF
sudo apt update
sudo apt install gcc-13 g++-13 gcc g++ gcc-13-locales g++-multilib -y
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/llvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
id: cache-llvm-16
with:
path: |
/opt/homebrew/Cellar/llvm@16/
opt/homebrew/opt/llvm@16/
/usr/local/Cellar/llvm/
key: ${{ runner.os }}-llvm-16
Expand All @@ -46,18 +46,18 @@ jobs:
if: ${{ steps.cache-llvm-16.outputs.cache-hit!= 'true' }}
run: |
brew install llvm@16
export PATH="/opt/homebrew/Cellar/llvm@16/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/Cellar/llvm@16/lib"
export CPPFLAGS="-I/opt/homebrew/Cellar/llvm@16/include"
export PATH="opt/homebrew/opt/llvm@16/bin:$PATH"
export LDFLAGS="-Lopt/homebrew/opt/llvm@16/lib"
export CPPFLAGS="-Iopt/homebrew/opt/llvm@16/include"
- name: install
run: |
brew install xmake [email protected] six z3 zstd
brew install libtool automake
export LDFLAGS="-L/opt/homebrew/Cellar/llvm@16/lib"
export CPPFLAGS="-I/opt/homebrew/Cellar/llvm@16/include"
echo 'export PATH="/opt/homebrew/Cellar/llvm@16/bin:$PATH"' >> /Users/runner/.bash_profile
export LDFLAGS="-Lopt/homebrew/opt/llvm@16/lib"
export CPPFLAGS="-Iopt/homebrew/opt/llvm@16/include"
echo 'export PATH="opt/homebrew/opt/llvm@16/bin:$PATH"' >> /Users/runner/.bash_profile
- name: vcpkg-action

Expand All @@ -78,11 +78,11 @@ jobs:
xmake-version: branch@dev
actions-cache-folder: ".xmake-cache"
- run: xmake l install.lua
- run: deno run -A xmake.ts --mode=test --group=test --toolchain=llvm --sdk=/opt/homebrew/Cellar/llvm@16/
- run: deno run -A xmake.ts --mode=test --group=test --toolchain=llvm --sdk=opt/homebrew/opt/llvm@16/
- run: xmake clean -a
- run: xmake f --toolchain=llvm --sdk=/opt/homebrew/Cellar/llvm@16/ -y -v --project=. "--file=./xmake.lua"
- run: xmake f --toolchain=llvm --sdk=opt/homebrew/opt/llvm@16/ -y -v --project=. "--file=./xmake.lua"
- run: xmake build -v -y -w --project=. "--file=./xmake.lua"
- run: xmake clean -a
- run: xmake f --toolchain=llvm --sdk=/opt/homebrew/Cellar/llvm@16/ -y -v --project=. "--file=./xmake.lua" --mode=test
- run: xmake f --toolchain=llvm --sdk=opt/homebrew/opt/llvm@16/ -y -v --project=. "--file=./xmake.lua" --mode=test
- run: xmake build -v -y -w --project=. "--file=./xmake.lua" --group=test
- run: xmake run --group=test

0 comments on commit e844126

Please sign in to comment.