@@ -80,10 +80,14 @@ jobs:
80
80
platform : darwin-arm
81
81
target : aarch64-apple-darwin
82
82
steps :
83
- - name : Checkout repository
83
+ - name : Checkout this repo (action path)
84
+ uses : actions/checkout@v3
85
+
86
+ - name : Checkout fuel-core
84
87
uses : actions/checkout@v3
85
88
with :
86
89
repository : fuellabs/fuel-core
90
+ path : fuel-core
87
91
88
92
- name : Setup cross build environment
89
93
uses : ./.github/actions/setup-cross-build
@@ -94,16 +98,13 @@ jobs:
94
98
rust_version : ${{ env.RUST_VERSION }}
95
99
96
100
- name : Install cargo-edit
97
- uses : actions-rs/cargo@v1
98
- with :
99
- command : install
100
- args : cargo-edit
101
+ working-directory : fuel-core
102
+ run : cargo install cargo-edit
101
103
102
104
- name : Bump patch version and add nightly pre-release tag
103
- uses : actions-rs/cargo@v1
104
- with :
105
- command : set-version
106
- args : --metadata nightly.${{ inputs.date }}.${{ needs.prepare-release.outputs.commit_hash }}
105
+ working-directory : fuel-core
106
+ run : |
107
+ cargo set-version --metadata "nightly.${{ inputs.date }}.${{ needs.prepare-release.outputs.commit_hash }}"
107
108
108
109
- uses : Swatinem/rust-cache@v1
109
110
with :
@@ -117,15 +118,18 @@ jobs:
117
118
cache-key : ' ${{ matrix.job.target }}'
118
119
119
120
- name : Build fuel-core
121
+ working-directory : fuel-core
120
122
run : |
121
123
cross build --profile=release --target ${{ matrix.job.target }} --features "production" -p fuel-core-bin
122
124
123
125
- name : Strip release binary linux x86_64
124
126
if : matrix.job.platform == 'linux'
127
+ working-directory : fuel-core
125
128
run : strip "target/${{ matrix.job.target }}/release/fuel-core"
126
129
127
130
- name : Strip release binary aarch64-linux-gnu
128
131
if : matrix.job.target == 'aarch64-unknown-linux-gnu'
132
+ working-directory : fuel-core
129
133
run : |
130
134
docker run --rm -v \
131
135
"$PWD/target:/target:Z" \
@@ -135,12 +139,14 @@ jobs:
135
139
136
140
- name : Strip release binary mac
137
141
if : matrix.job.os == 'macos-latest'
142
+ working-directory : fuel-core
138
143
run : strip -x "target/${{ matrix.job.target }}/release/fuel-core"
139
144
140
145
- name : Prepare Binary Artifact
141
146
env :
142
147
PLATFORM_NAME : ${{ matrix.job.platform }}
143
148
TARGET : ${{ matrix.job.target }}
149
+ working-directory : fuel-core
144
150
run : |
145
151
ARTIFACT="${{ needs.prepare-release.outputs.zip_name }}-${{ env.TARGET }}"
146
152
ZIP_FILE_NAME="$ARTIFACT.tar.gz"
0 commit comments