File tree Expand file tree Collapse file tree 4 files changed +24
-35
lines changed
Expand file tree Collapse file tree 4 files changed +24
-35
lines changed Original file line number Diff line number Diff line change 1515 build_mode : [""]
1616 os : [macos-latest, ubuntu-latest]
1717 steps :
18- - uses : actions/checkout@v2
18+ - uses : actions/checkout@v4
1919 - name : Install Linux dependencies
2020 uses : ./.github/actions/install-linux-deps
2121 - name : Build sdl3
2727 set -xeuo pipefail
2828 rustc --version
2929 cargo --version
30- cargo build --features "${CI_BUILD_FEATURES} ${{matrix.feature}}" ${{matrix.build_mode}}
31- cargo build --examples --features "${CI_BUILD_FEATURES} ${{matrix.feature}}" ${{matrix.build_mode}}
30+ cargo build --features "${CI_BUILD_FEATURES} ${{ matrix.feature }}" ${{ matrix.build_mode }}
31+ cargo build --examples --features "${CI_BUILD_FEATURES} ${{ matrix.feature }}" ${{ matrix.build_mode }}
32+
33+ release :
34+ name : Tag Release
35+ needs : build-from-source
36+ runs-on : ubuntu-latest
37+ if : github.ref == 'refs/heads/master'
38+ steps :
39+ - name : Checkout code
40+ uses : actions/checkout@v4
41+ - name : Create Release
42+ id : create_release
43+ uses : comnoco/create-release@v2
44+ env :
45+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
46+ with :
47+ tag_name : ${{ github.ref }}
48+ release_name : Release ${{ github.ref }}
Original file line number Diff line number Diff line change 88 fmt :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v2
12- - uses : actions-rs/toolchain@v1
13- with :
14- profile : minimal
15- toolchain : stable
16- override : true
11+ - uses : actions/checkout@v4
12+ - uses : actions-rust-lang/setup-rust-toolchain@v1
1713 - run : rustup component add rustfmt
18- - uses : actions-rs/cargo@v1
19- with :
20- command : fmt
21- args : --all -- --check
14+ - run : cargo fmt --all -- --check
Original file line number Diff line number Diff line change 1010 runs-on : ubuntu-latest
1111 steps :
1212 - name : Checkout repository
13- uses : actions/checkout@v3
13+ uses : actions/checkout@v4
1414
1515 - name : Set up Rust toolchain
1616 uses : actions-rs/toolchain@v1
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments