Skip to content

Commit cdaf8a8

Browse files
Update workflow files
This suppresses some deprecation messages. For now, deprecation message are also emmited when using `action-rs` actions. They should resolve this soon with <actions-rs/toolchain#222>.
1 parent 3e779b2 commit cdaf8a8

File tree

2 files changed

+89
-89
lines changed

2 files changed

+89
-89
lines changed

.github/workflows/make_release.yml

Lines changed: 77 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ on:
66
- master
77
inputs:
88
version:
9-
description: 'Version number'
9+
description: "Version number"
1010
required: true
1111
body:
12-
description: 'Description of the release'
12+
description: "Description of the release"
1313
required: true
1414

1515
env:
@@ -23,24 +23,24 @@ jobs:
2323
fail-fast: true
2424

2525
steps:
26-
- uses: actions/checkout@v2
27-
- uses: actions-rs/toolchain@v1
28-
with:
29-
toolchain: stable
30-
- uses: Swatinem/rust-cache@v1
31-
- uses: actions-rs/cargo@v1
32-
with:
33-
command: build
34-
args: --release --verbose -p dijkstra_map_gd
35-
- name: Strip library file
36-
run: strip target/release/libdijkstra_map_gd.so
37-
- uses: actions/upload-artifact@v2
38-
with:
39-
name: libdijkstra_map_gd.so
40-
path: target/release/libdijkstra_map_gd.so
41-
42-
# This jobs running on ubuntu-latest may be surprising : it's because I
43-
# couldn't make the build succeed on windows, but using the
26+
- uses: actions/checkout@v3
27+
- uses: actions-rs/toolchain@v1
28+
with:
29+
toolchain: stable
30+
- uses: Swatinem/rust-cache@v2
31+
- uses: actions-rs/cargo@v1
32+
with:
33+
command: build
34+
args: --release --verbose -p dijkstra_map_gd
35+
- name: Strip library file
36+
run: strip target/release/libdijkstra_map_gd.so
37+
- uses: actions/upload-artifact@v3
38+
with:
39+
name: libdijkstra_map_gd.so
40+
path: target/release/libdijkstra_map_gd.so
41+
42+
# This jobs running on ubuntu-latest may be surprising : it's because I
43+
# couldn't make the build succeed on windows, but using the
4444
# x86_64-pc-windows-gnu on linux works perfectly well.
4545
build-windows:
4646
runs-on: ubuntu-latest
@@ -49,73 +49,73 @@ jobs:
4949
fail-fast: true
5050

5151
steps:
52-
- uses: actions/checkout@v2
53-
- uses: actions-rs/toolchain@v1
54-
with:
55-
toolchain: stable
56-
target: x86_64-pc-windows-gnu
57-
- uses: Swatinem/rust-cache@v1
58-
# we need a windows linker
59-
- name: Install gcc-mingw-w64-x86-64 linker
60-
run: sudo apt install gcc-mingw-w64-x86-64
61-
- uses: actions-rs/cargo@v1
62-
with:
63-
command: build
64-
args: --release --verbose -p dijkstra_map_gd --target x86_64-pc-windows-gnu
65-
- uses: actions/upload-artifact@v2
66-
with:
67-
name: dijkstra_map_gd.dll
68-
path: target/x86_64-pc-windows-gnu/release/dijkstra_map_gd.dll
69-
52+
- uses: actions/checkout@v3
53+
- uses: actions-rs/toolchain@v1
54+
with:
55+
toolchain: stable
56+
target: x86_64-pc-windows-gnu
57+
- uses: Swatinem/rust-cache@v2
58+
# we need a windows linker
59+
- name: Install gcc-mingw-w64-x86-64 linker
60+
run: sudo apt install gcc-mingw-w64-x86-64
61+
- uses: actions-rs/cargo@v1
62+
with:
63+
command: build
64+
args: --release --verbose -p dijkstra_map_gd --target x86_64-pc-windows-gnu
65+
- uses: actions/upload-artifact@v3
66+
with:
67+
name: dijkstra_map_gd.dll
68+
path: target/x86_64-pc-windows-gnu/release/dijkstra_map_gd.dll
69+
7070
build-macos:
7171
runs-on: macos-latest
7272

7373
strategy:
7474
fail-fast: true
7575

7676
steps:
77-
- uses: actions/checkout@v2
78-
- uses: actions-rs/toolchain@v1
79-
with:
80-
toolchain: stable
81-
target: x86_64-apple-darwin
82-
default: true
83-
override: true
84-
- uses: Swatinem/rust-cache@v1
85-
- uses: actions-rs/cargo@v1
86-
with:
87-
command: build
88-
args: --release -p dijkstra_map_gd
89-
- uses: actions/upload-artifact@v2
90-
with:
91-
name: libdijkstra_map_gd.dylib
92-
path: target/release/libdijkstra_map_gd.dylib
77+
- uses: actions/checkout@v3
78+
- uses: actions-rs/toolchain@v1
79+
with:
80+
toolchain: stable
81+
target: x86_64-apple-darwin
82+
default: true
83+
override: true
84+
- uses: Swatinem/rust-cache@v2
85+
- uses: actions-rs/cargo@v1
86+
with:
87+
command: build
88+
args: --release -p dijkstra_map_gd
89+
- uses: actions/upload-artifact@v3
90+
with:
91+
name: libdijkstra_map_gd.dylib
92+
path: target/release/libdijkstra_map_gd.dylib
9393

9494
commit:
9595
runs-on: ubuntu-latest
9696

9797
needs: [build-linux, build-windows, build-macos]
98-
98+
9999
steps:
100-
- uses: actions/checkout@v2
101-
- name: Download libdijkstra_map_gd.so
102-
uses: actions/download-artifact@v2
103-
with:
104-
name: libdijkstra_map_gd.so
105-
path: addons/dijkstra_map/Dijkstra_map_library/bin/linux/
106-
- name: Download dijkstra_map_gd.dll
107-
uses: actions/download-artifact@v2
108-
with:
109-
name: dijkstra_map_gd.dll
110-
path: addons/dijkstra_map/Dijkstra_map_library/bin/windows/
111-
- name: Download libdijkstra_map_gd.dylib
112-
uses: actions/download-artifact@v2
113-
with:
114-
name: libdijkstra_map_gd.dylib
115-
path: addons/dijkstra_map/Dijkstra_map_library/bin/macos/
116-
- uses: stefanzweifel/git-auto-commit-action@v4
117-
with:
118-
commit_message: "Release ${{ github.event.inputs.version }}\n${{ github.event.inputs.body }}"
119-
- uses: stefanzweifel/git-auto-commit-action@v4
120-
with:
121-
tagging_message: "${{ github.event.inputs.version }}\n${{ github.event.inputs.body }}"
100+
- uses: actions/checkout@v3
101+
- name: Download libdijkstra_map_gd.so
102+
uses: actions/download-artifact@v3
103+
with:
104+
name: libdijkstra_map_gd.so
105+
path: addons/dijkstra_map/Dijkstra_map_library/bin/linux/
106+
- name: Download dijkstra_map_gd.dll
107+
uses: actions/download-artifact@v3
108+
with:
109+
name: dijkstra_map_gd.dll
110+
path: addons/dijkstra_map/Dijkstra_map_library/bin/windows/
111+
- name: Download libdijkstra_map_gd.dylib
112+
uses: actions/download-artifact@v3
113+
with:
114+
name: libdijkstra_map_gd.dylib
115+
path: addons/dijkstra_map/Dijkstra_map_library/bin/macos/
116+
- uses: stefanzweifel/git-auto-commit-action@v4
117+
with:
118+
commit_message: "Release ${{ github.event.inputs.version }}\n${{ github.event.inputs.body }}"
119+
- uses: stefanzweifel/git-auto-commit-action@v4
120+
with:
121+
tagging_message: "${{ github.event.inputs.version }}\n${{ github.event.inputs.body }}"

.github/workflows/run_tests.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ jobs:
2727
target: x86_64-apple-darwin
2828

2929
steps:
30-
- uses: actions/checkout@v2
31-
- uses: actions-rs/toolchain@v1
32-
with:
33-
toolchain: stable
34-
target: ${{ matrix.target }}
35-
default: true
36-
override: true
37-
- uses: Swatinem/rust-cache@v1
38-
- uses: actions-rs/cargo@v1
39-
with:
40-
command: test
41-
args: --verbose --workspace
30+
- uses: actions/checkout@v3
31+
- uses: actions-rs/toolchain@v1
32+
with:
33+
toolchain: stable
34+
target: ${{ matrix.target }}
35+
default: true
36+
override: true
37+
- uses: Swatinem/rust-cache@v2
38+
- uses: actions-rs/cargo@v1
39+
with:
40+
command: test
41+
args: --verbose --workspace

0 commit comments

Comments
 (0)