29
29
- name : Set Build Tag
30
30
id : set_tag
31
31
run : |
32
- export TAG="v$(date +'%Y%m%d-%H%M')"
32
+ TAG="v$(date +'%Y%m%d-%H%M')"
33
33
echo "TAG_NAME=$TAG" >> $GITHUB_ENV
34
34
echo "tag_name=$TAG" >> $GITHUB_OUTPUT
35
35
@@ -40,38 +40,43 @@ jobs:
40
40
41
41
- name : Create Git Tag
42
42
run : |
43
- git tag $TAG_NAME
44
- git push origin $TAG_NAME
43
+ git tag " $TAG_NAME"
44
+ git push origin " $TAG_NAME"
45
45
46
- - name : Make Script Executable
46
+ - name : Make Scripts Executable
47
47
run : |
48
48
chmod +x ./build_adventurecoin_ubuntu.sh
49
49
chmod +x ./build_adventurecoin_mac.sh
50
50
51
+ # Ubuntu specific steps
51
52
- name : Install Dependencies (Ubuntu)
52
- if : inputs.os_target == 'ubuntu'
53
- run : sudo apt-get update && sudo apt-get install -y imagemagick
53
+ if : ${{ inputs.os_target == 'ubuntu' }}
54
+ run : |
55
+ sudo apt-get update
56
+ sudo apt-get install -y imagemagick
54
57
55
- - name : Run Ubuntu Build
56
- if : inputs.os_target == 'ubuntu'
58
+ - name : Run Ubuntu Build Script
59
+ if : ${{ inputs.os_target == 'ubuntu' }}
57
60
run : |
58
61
echo -e "2\ny\ny\ny\ny\ny" | ./build_adventurecoin_ubuntu.sh
59
62
60
- - name : Remove conflicting Protobuf versions (macOS)
61
- if : inputs.os_target == 'macos'
63
+ # macOS specific steps
64
+ - name : Uninstall Protobuf (macOS clean slate)
65
+ if : ${{ inputs.os_target == 'macos' }}
62
66
run : |
63
67
brew uninstall --ignore-dependencies protobuf || true
64
- brew cleanup
68
+ brew cleanup || true
65
69
66
- - name : Run macOS Build
67
- if : inputs.os_target == 'macos'
70
+ - name : Run macOS Build Script
71
+ if : ${{ inputs.os_target == 'macos' }}
68
72
env :
69
- PATH : " $HOME/local/protobuf-3.6.1/bin:/usr/local/bin:/opt/homebrew/bin:${{ env.PATH }}"
70
- PKG_CONFIG_PATH : " $HOME/local/protobuf-3.6.1/lib/pkgconfig"
71
- LD_LIBRARY_PATH : " $HOME/local/protobuf-3.6.1/lib"
72
- LDFLAGS : " -L$HOME/local/protobuf-3.6.1/lib"
73
- CPPFLAGS : " -I$HOME/local/protobuf-3.6.1/include"
74
- PROTOC : " $HOME/local/protobuf-3.6.1/bin/protoc"
73
+ HOME : ${{ github.workspace }}
74
+ PATH : " ${{ github.workspace }}/local/protobuf-3.6.1/bin:/usr/local/bin:/opt/homebrew/bin:${{ env.PATH }}"
75
+ PKG_CONFIG_PATH : " ${{ github.workspace }}/local/protobuf-3.6.1/lib/pkgconfig"
76
+ LD_LIBRARY_PATH : " ${{ github.workspace }}/local/protobuf-3.6.1/lib"
77
+ LDFLAGS : " -L${{ github.workspace }}/local/protobuf-3.6.1/lib"
78
+ CPPFLAGS : " -I${{ github.workspace }}/local/protobuf-3.6.1/include"
79
+ PROTOC : " ${{ github.workspace }}/local/protobuf-3.6.1/bin/protoc"
75
80
run : |
76
81
echo -e "2\ny\ny" | ./build_adventurecoin_mac.sh
77
82
0 commit comments