Skip to content

Commit

Permalink
test 3
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
  • Loading branch information
Ansuel committed Oct 26, 2023
1 parent 96101fb commit dfe6110
Showing 1 changed file with 38 additions and 29 deletions.
67 changes: 38 additions & 29 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,48 @@ on:
jobs:
build:
name: Build armsr/armv8
runs-on: macos-latest
runs-on: ubuntu-latest

steps:
- name: Determine base branch tag
id: determine_base_branch
run: |
BASE_BRANCH=openwrt-23.05
# if [ -n "${{ github.base_ref }}" ]; then
# if echo "${{ github.base_ref }}" | grep -q -E '^openwrt-[0-9][0-9]\.[0-9][0-9]$'; then
# BASE_BRANCH="${{ github.base_ref }}"
# fi
# elif [ ${{ github.ref_type }} == "branch" ]; then
# if echo "${{ github.ref_name }}" | grep -q -E '^openwrt-[0-9][0-9]\.[0-9][0-9]$'; then
# CONTAINER_TAG=${{ github.ref_name }}
# elif echo "${{ github.ref_name }}" | grep -q -E '^openwrt-[0-9][0-9]\.[0-9][0-9]-'; then
# BASE_BRANCH="$(echo ${{ github.ref_name }} | sed 's/^\(openwrt-[0-9][0-9]\.[0-9][0-9]\)-.*/\1/')"
# fi
# elif [ ${{ github.ref_type }} == "tag" ]; then
# if echo "${{ github.ref_name }}" | grep -q -E '^v[0-9][0-9]\.[0-9][0-9]\..+'; then
# BASE_BRANCH=openwrt-"$(echo ${{ github.ref_name }} | sed 's/^v\([0-9][0-9]\.[0-9][0-9]\)\..\+/\1/')"
# fi
# fi
echo "Detected base branch as $BASE_BRANCH"
echo "base_branch=$BASE_BRANCH" >> $GITHUB_OUTPUT
- name:
# - name: Determine base branch tag
# id: determine_base_branch
# run: |
# BASE_BRANCH=openwrt-23.05
# # if [ -n "${{ github.base_ref }}" ]; then
# # if echo "${{ github.base_ref }}" | grep -q -E '^openwrt-[0-9][0-9]\.[0-9][0-9]$'; then
# # BASE_BRANCH="${{ github.base_ref }}"
# # fi
# # elif [ ${{ github.ref_type }} == "branch" ]; then
# # if echo "${{ github.ref_name }}" | grep -q -E '^openwrt-[0-9][0-9]\.[0-9][0-9]$'; then
# # CONTAINER_TAG=${{ github.ref_name }}
# # elif echo "${{ github.ref_name }}" | grep -q -E '^openwrt-[0-9][0-9]\.[0-9][0-9]-'; then
# # BASE_BRANCH="$(echo ${{ github.ref_name }} | sed 's/^\(openwrt-[0-9][0-9]\.[0-9][0-9]\)-.*/\1/')"
# # fi
# # elif [ ${{ github.ref_type }} == "tag" ]; then
# # if echo "${{ github.ref_name }}" | grep -q -E '^v[0-9][0-9]\.[0-9][0-9]\..+'; then
# # BASE_BRANCH=openwrt-"$(echo ${{ github.ref_name }} | sed 's/^v\([0-9][0-9]\.[0-9][0-9]\)\..\+/\1/')"
# # fi
# # fi

# echo "Detected base branch as $BASE_BRANCH"
# echo "base_branch=$BASE_BRANCH" >> $GITHUB_OUTPUT

- name: aaa
# env:
# TEST: ${{ steps.determine_base_branch.outputs.base_branch != 'main' &&
# steps.determine_base_branch.outputs.base_branch || '' }}
env:
TEST: ${{ steps.determine_base_branch.outputs.base_branch != 'main' && \
steps.determine_base_branch.outputs.base_branch || '' }}
SYSTEM_CCACHE_CONF: ccache.conf
ccache_type: kernel
run: |
echo ${{env.TEST}}
touch $SYSTEM_CCACHE_CONF
echo compiler_type=gcc >> $SYSTEM_CCACHE_CONF
[ ${{ env.ccache_type }} == 'kernel' ] && echo max_size=400M >> $SYSTEM_CCACHE_CONF
echo CONFIG_CCACHE=y >> .config
cat $SYSTEM_CCACHE_CONF
# - name: Checkout master directory
# uses: actions/checkout@v3
# with:
Expand Down

0 comments on commit dfe6110

Please sign in to comment.